/** * We create an instance of `UnitLogger` which we use in script-utils. * * This is useful so that we can: * * - unit test our own code without dumping our scripting output to the * unit test runner * - allows us to do things like silence or collect the logs of script-utils * when script-utils is used as part of another package. */ export declare const logger: { debug: (s: unknown) => void; log: (s: unknown) => void; info: (s: unknown) => void; warn: (s: unknown) => void; error: (s: unknown) => void; enable: () => void; disable: () => void; startRecording: () => void; stopRecording: () => void; playRecording: (complete?: boolean | undefined) => unknown[]; record: { (fn: () => void, complete?: boolean | undefined): unknown[]; (fn: () => Promise, complete?: boolean | undefined): Promise; }; silence: { (fn: () => T): T; >(fn: () => Promise): T_1; }; collect: { (fn: () => void, complete?: boolean | undefined): unknown[]; (fn: () => Promise, complete?: boolean | undefined): Promise; }; };