/** `{ ok: true, data }` on `--json`, the human line otherwise. */ export declare function emitSuccess(json: boolean | undefined, data: unknown, text: string): void; /** * `{ ok: false, error, code? }` on `--json`, the message on stderr otherwise. * Always marks the run failed — every call site in the playwright verbs is a * failure path. */ export declare function emitFailure(json: boolean | undefined, message: string, code?: string): void;