/* eslint-disable import/no-extraneous-dependencies */ import type { RollupBuild, OutputOptions, OutputChunk, OutputAsset } from 'rollup'; import type { Assertions } from 'ava'; interface GetCode { (bundle: RollupBuild, outputOptions?: OutputOptions | null, allFiles?: false): Promise; (bundle: RollupBuild, outputOptions: OutputOptions | null | undefined, allFiles: true): Promise< Array<{ code: OutputChunk['code'] | undefined; fileName: OutputChunk['fileName'] | OutputAsset['fileName']; source: OutputAsset['source'] | undefined; }> >; } export const getCode: GetCode; export function getFiles( bundle: RollupBuild, outputOptions?: OutputOptions ): Promise< { fileName: string; content: any; }[] >; export function evaluateBundle(bundle: RollupBuild): Promise>; export function getImports(bundle: RollupBuild): Promise; export function getResolvedModules(bundle: RollupBuild): Promise>; export function onwarn(warning: string | any): void; export function testBundle( t: Assertions, bundle: RollupBuild, options: { inject: Record; options: Record } ): Promise<{ code: string; error?: any; result?: any; module: Pick; }>;