/** Logs for one part of a shell. */ export type Logger = { /** Something broke that the user would notice. Shown by default. */ error: (...said: unknown[]) => void; /** Something unexpected the shell got past. */ warn: (...said: unknown[]) => void; /** A change worth a line. */ info: (...said: unknown[]) => void; /** Detail for tracing an issue. */ debug: (...said: unknown[]) => void; }; /** What a {@link Logger} writes to: the console, or a test's stand-in. */ export type LogSink = Pick; /** * Logs for the part of a shell named `subsystem`: letters, digits, `-` and * `_`, such as `notifications` or `launcher`. */ export declare const logger: (subsystem: string, sink?: LogSink) => Logger;