export declare const COMMAND_RESULT_UNKNOWN_CODE = "command_result_unknown"; export declare const COMMAND_RESULT_UNKNOWN_HINT = "Inspect the browser/session state before retrying. Do not blindly retry write commands such as navigate, click, type, or eval."; export declare const PROFILE_DISCONNECTED_HINT = "Open that Chrome profile and make sure the OpenCLI extension is enabled, or choose another profile with opencli profile use ."; export type DaemonFailureContract = { message: string; errorCode: string; errorHint: string; status: number; countAsCommandResultUnknown: boolean; }; export declare function commandResultUnknownMessage(action: string): string; export declare function buildExtensionDisconnectFailure(input: { contextId: string; action: string; dispatched: boolean; }): DaemonFailureContract; export declare function buildCommandDispatchFailure(contextId: string): DaemonFailureContract; export declare function getResponseCorsHeaders(pathname: string, origin?: string): Record | undefined;