import { z } from 'zod';
export declare const DaemonTerminalErrorCodeSchema: z.ZodEnum<{
    terminal_disabled: "terminal_disabled";
    terminal_not_found: "terminal_not_found";
    terminal_cwd_denied: "terminal_cwd_denied";
    terminal_spawn_failed: "terminal_spawn_failed";
    terminal_invalid_request: "terminal_invalid_request";
    terminal_busy: "terminal_busy";
}>;
export type DaemonTerminalErrorCode = z.infer<typeof DaemonTerminalErrorCodeSchema>;
export declare const DaemonTerminalErrorSchema: z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>;
export type DaemonTerminalError = z.infer<typeof DaemonTerminalErrorSchema>;
export declare const DaemonTerminalEnsureRequestSchema: z.ZodObject<{
    terminalKey: z.ZodString;
    cwd: z.ZodOptional<z.ZodString>;
    cols: z.ZodOptional<z.ZodNumber>;
    rows: z.ZodOptional<z.ZodNumber>;
    initialCommand: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
export type DaemonTerminalEnsureRequest = z.infer<typeof DaemonTerminalEnsureRequestSchema>;
export declare const DaemonTerminalEnsureResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    terminalId: z.ZodString;
    reused: z.ZodBoolean;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonTerminalEnsureResponse = z.infer<typeof DaemonTerminalEnsureResponseSchema>;
export declare const DaemonTerminalStreamReadRequestSchema: z.ZodObject<{
    terminalId: z.ZodString;
    cursor: z.ZodNumber;
    maxBytes: z.ZodOptional<z.ZodNumber>;
    maxEvents: z.ZodOptional<z.ZodNumber>;
}, z.core.$loose>;
export type DaemonTerminalStreamReadRequest = z.infer<typeof DaemonTerminalStreamReadRequestSchema>;
export declare const DaemonTerminalStreamEventDataSchema: z.ZodObject<{
    t: z.ZodLiteral<"data">;
    data: z.ZodString;
}, z.core.$loose>;
export type DaemonTerminalStreamEventData = z.infer<typeof DaemonTerminalStreamEventDataSchema>;
export declare const DaemonTerminalStreamEventUrlSchema: z.ZodObject<{
    t: z.ZodLiteral<"url">;
    url: z.ZodString;
    kind: z.ZodEnum<{
        auth: "auth";
        generic: "generic";
    }>;
    suggestOpen: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>;
export type DaemonTerminalStreamEventUrl = z.infer<typeof DaemonTerminalStreamEventUrlSchema>;
export declare const DaemonTerminalStreamEventGapSchema: z.ZodObject<{
    t: z.ZodLiteral<"gap">;
    droppedBefore: z.ZodNumber;
}, z.core.$loose>;
export type DaemonTerminalStreamEventGap = z.infer<typeof DaemonTerminalStreamEventGapSchema>;
export declare const DaemonTerminalStreamEventExitSchema: z.ZodObject<{
    t: z.ZodLiteral<"exit">;
    exitCode: z.ZodNullable<z.ZodNumber>;
    signal: z.ZodNullable<z.ZodNumber>;
}, z.core.$loose>;
export type DaemonTerminalStreamEventExit = z.infer<typeof DaemonTerminalStreamEventExitSchema>;
export declare const DaemonTerminalStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    t: z.ZodLiteral<"data">;
    data: z.ZodString;
}, z.core.$loose>, z.ZodObject<{
    t: z.ZodLiteral<"url">;
    url: z.ZodString;
    kind: z.ZodEnum<{
        auth: "auth";
        generic: "generic";
    }>;
    suggestOpen: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>, z.ZodObject<{
    t: z.ZodLiteral<"gap">;
    droppedBefore: z.ZodNumber;
}, z.core.$loose>, z.ZodObject<{
    t: z.ZodLiteral<"exit">;
    exitCode: z.ZodNullable<z.ZodNumber>;
    signal: z.ZodNullable<z.ZodNumber>;
}, z.core.$loose>], "t">;
export type DaemonTerminalStreamEvent = z.infer<typeof DaemonTerminalStreamEventSchema>;
export declare const DaemonTerminalStreamReadResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    terminalId: z.ZodString;
    events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        t: z.ZodLiteral<"data">;
        data: z.ZodString;
    }, z.core.$loose>, z.ZodObject<{
        t: z.ZodLiteral<"url">;
        url: z.ZodString;
        kind: z.ZodEnum<{
            auth: "auth";
            generic: "generic";
        }>;
        suggestOpen: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$loose>, z.ZodObject<{
        t: z.ZodLiteral<"gap">;
        droppedBefore: z.ZodNumber;
    }, z.core.$loose>, z.ZodObject<{
        t: z.ZodLiteral<"exit">;
        exitCode: z.ZodNullable<z.ZodNumber>;
        signal: z.ZodNullable<z.ZodNumber>;
    }, z.core.$loose>], "t">>;
    nextCursor: z.ZodNumber;
    done: z.ZodBoolean;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonTerminalStreamReadResponse = z.infer<typeof DaemonTerminalStreamReadResponseSchema>;
export declare const DaemonTerminalInputRequestSchema: z.ZodObject<{
    terminalId: z.ZodString;
    data: z.ZodString;
}, z.core.$loose>;
export type DaemonTerminalInputRequest = z.infer<typeof DaemonTerminalInputRequestSchema>;
export declare const DaemonTerminalInputResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonTerminalInputResponse = z.infer<typeof DaemonTerminalInputResponseSchema>;
export declare const DaemonTerminalResizeRequestSchema: z.ZodObject<{
    terminalId: z.ZodString;
    cols: z.ZodNumber;
    rows: z.ZodNumber;
}, z.core.$loose>;
export type DaemonTerminalResizeRequest = z.infer<typeof DaemonTerminalResizeRequestSchema>;
export declare const DaemonTerminalResizeResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonTerminalResizeResponse = z.infer<typeof DaemonTerminalResizeResponseSchema>;
export declare const DaemonTerminalCloseRequestSchema: z.ZodObject<{
    terminalId: z.ZodString;
}, z.core.$loose>;
export type DaemonTerminalCloseRequest = z.infer<typeof DaemonTerminalCloseRequestSchema>;
export declare const DaemonTerminalCloseResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonTerminalCloseResponse = z.infer<typeof DaemonTerminalCloseResponseSchema>;
export declare const DaemonTerminalRestartRequestSchema: z.ZodObject<{
    terminalKey: z.ZodString;
    cwd: z.ZodOptional<z.ZodString>;
    cols: z.ZodOptional<z.ZodNumber>;
    rows: z.ZodOptional<z.ZodNumber>;
    initialCommand: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
export type DaemonTerminalRestartRequest = z.infer<typeof DaemonTerminalRestartRequestSchema>;
export declare const DaemonTerminalRestartResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    terminalId: z.ZodString;
    reused: z.ZodBoolean;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        terminal_disabled: "terminal_disabled";
        terminal_not_found: "terminal_not_found";
        terminal_cwd_denied: "terminal_cwd_denied";
        terminal_spawn_failed: "terminal_spawn_failed";
        terminal_invalid_request: "terminal_invalid_request";
        terminal_busy: "terminal_busy";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonTerminalRestartResponse = z.infer<typeof DaemonTerminalRestartResponseSchema>;
//# sourceMappingURL=daemonTerminal.d.ts.map