import { z } from 'zod';
export declare const McpDetectedProviderV1Schema: z.ZodEnum<{
    codex: "codex";
    opencode: "opencode";
    claude: "claude";
}>;
export type McpDetectedProviderV1 = z.infer<typeof McpDetectedProviderV1Schema>;
export declare const DetectedMcpServerV1Schema: z.ZodObject<{
    provider: z.ZodEnum<{
        codex: "codex";
        opencode: "opencode";
        claude: "claude";
    }>;
    name: z.ZodString;
    transport: z.ZodEnum<{
        http: "http";
        stdio: "stdio";
        sse: "sse";
    }>;
    stdio: z.ZodOptional<z.ZodObject<{
        command: z.ZodString;
        args: z.ZodArray<z.ZodString>;
    }, z.core.$strip>>;
    remote: z.ZodOptional<z.ZodObject<{
        url: z.ZodString;
        headers: z.ZodArray<z.ZodString>;
    }, z.core.$strip>>;
    envKeys: z.ZodArray<z.ZodString>;
    enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>;
    source: z.ZodObject<{
        kind: z.ZodEnum<{
            user: "user";
            project: "project";
        }>;
        path: z.ZodString;
    }, z.core.$loose>;
}, z.core.$loose>;
export type DetectedMcpServerV1 = z.infer<typeof DetectedMcpServerV1Schema>;
export declare const DaemonMcpServersDetectWarningV1Schema: z.ZodObject<{
    provider: z.ZodEnum<{
        codex: "codex";
        opencode: "opencode";
        claude: "claude";
    }>;
    code: z.ZodEnum<{
        unsupported: "unsupported";
        read_failed: "read_failed";
        parse_failed: "parse_failed";
    }>;
    path: z.ZodOptional<z.ZodString>;
    detail: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
export type DaemonMcpServersDetectWarningV1 = z.infer<typeof DaemonMcpServersDetectWarningV1Schema>;
export declare const DaemonMcpServersDetectRequestSchema: z.ZodObject<{
    machineId: z.ZodString;
    directory: z.ZodOptional<z.ZodString>;
    providers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
        codex: "codex";
        opencode: "opencode";
        claude: "claude";
    }>>>;
}, z.core.$loose>;
export type DaemonMcpServersDetectRequest = z.infer<typeof DaemonMcpServersDetectRequestSchema>;
export declare const DaemonMcpServersDetectResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    servers: z.ZodArray<z.ZodObject<{
        provider: z.ZodEnum<{
            codex: "codex";
            opencode: "opencode";
            claude: "claude";
        }>;
        name: z.ZodString;
        transport: z.ZodEnum<{
            http: "http";
            stdio: "stdio";
            sse: "sse";
        }>;
        stdio: z.ZodOptional<z.ZodObject<{
            command: z.ZodString;
            args: z.ZodArray<z.ZodString>;
        }, z.core.$strip>>;
        remote: z.ZodOptional<z.ZodObject<{
            url: z.ZodString;
            headers: z.ZodArray<z.ZodString>;
        }, z.core.$strip>>;
        envKeys: z.ZodArray<z.ZodString>;
        enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>;
        source: z.ZodObject<{
            kind: z.ZodEnum<{
                user: "user";
                project: "project";
            }>;
            path: z.ZodString;
        }, z.core.$loose>;
    }, z.core.$loose>>;
    warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
        provider: z.ZodEnum<{
            codex: "codex";
            opencode: "opencode";
            claude: "claude";
        }>;
        code: z.ZodEnum<{
            unsupported: "unsupported";
            read_failed: "read_failed";
            parse_failed: "parse_failed";
        }>;
        path: z.ZodOptional<z.ZodString>;
        detail: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>>;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        invalid_request: "invalid_request";
        internal_error: "internal_error";
    }>;
    error: z.ZodString;
}, z.core.$loose>]>;
export type DaemonMcpServersDetectResponse = z.infer<typeof DaemonMcpServersDetectResponseSchema>;
export declare const DaemonMcpServersTestErrorCodeSchema: z.ZodEnum<{
    invalid_request: "invalid_request";
    missing_credentials: "missing_credentials";
    server_not_found: "server_not_found";
    binding_not_found: "binding_not_found";
    server_disabled: "server_disabled";
    materialization_failed: "materialization_failed";
    mcp_connect_failed: "mcp_connect_failed";
    mcp_list_tools_failed: "mcp_list_tools_failed";
}>;
export type DaemonMcpServersTestErrorCode = z.infer<typeof DaemonMcpServersTestErrorCodeSchema>;
export declare const DaemonMcpServersTestRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    t: z.ZodLiteral<"draft">;
    machineId: z.ZodString;
    directory: z.ZodString;
    server: z.ZodObject<{
        id: z.ZodString;
        name: z.ZodString;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        transport: z.ZodEnum<{
            http: "http";
            stdio: "stdio";
            sse: "sse";
        }>;
        stdio: z.ZodOptional<z.ZodObject<{
            command: z.ZodString;
            args: z.ZodArray<z.ZodString>;
        }, z.core.$strip>>;
        remote: z.ZodOptional<z.ZodObject<{
            url: z.ZodString;
            headers: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
                t: z.ZodLiteral<"literal">;
                v: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                t: z.ZodLiteral<"savedSecret">;
                secretId: z.ZodString;
            }, z.core.$strip>], "t">>;
        }, z.core.$strip>>;
        env: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
            t: z.ZodLiteral<"literal">;
            v: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            t: z.ZodLiteral<"savedSecret">;
            secretId: z.ZodString;
        }, z.core.$strip>], "t">>;
        createdAt: z.ZodNumber;
        updatedAt: z.ZodNumber;
    }, z.core.$strip>;
    binding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
        id: z.ZodString;
        serverId: z.ZodString;
        enabled: z.ZodBoolean;
        target: z.ZodDiscriminatedUnion<[z.ZodObject<{
            t: z.ZodLiteral<"allMachines">;
        }, z.core.$strip>, z.ZodObject<{
            t: z.ZodLiteral<"machine">;
            machineId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            t: z.ZodLiteral<"workspace">;
            machineId: z.ZodString;
            workspaceRoot: z.ZodString;
        }, z.core.$strip>], "t">;
        overrides: z.ZodOptional<z.ZodObject<{
            stdio: z.ZodOptional<z.ZodObject<{
                command: z.ZodOptional<z.ZodString>;
                args: z.ZodOptional<z.ZodArray<z.ZodString>>;
            }, z.core.$strip>>;
            remote: z.ZodOptional<z.ZodObject<{
                url: z.ZodOptional<z.ZodString>;
                headersPatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
                    t: z.ZodLiteral<"literal">;
                    v: z.ZodString;
                }, z.core.$strip>, z.ZodObject<{
                    t: z.ZodLiteral<"savedSecret">;
                    secretId: z.ZodString;
                }, z.core.$strip>], "t">, z.ZodNull]>>>;
            }, z.core.$strip>>;
            envPatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
                t: z.ZodLiteral<"literal">;
                v: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                t: z.ZodLiteral<"savedSecret">;
                secretId: z.ZodString;
            }, z.core.$strip>], "t">, z.ZodNull]>>>;
        }, z.core.$strip>>;
        createdAt: z.ZodNumber;
        updatedAt: z.ZodNumber;
    }, z.core.$strip>>>;
}, z.core.$loose>, z.ZodObject<{
    t: z.ZodLiteral<"byId">;
    machineId: z.ZodString;
    directory: z.ZodString;
    serverId: z.ZodString;
    bindingId: z.ZodOptional<z.ZodString>;
}, z.core.$loose>], "t">;
export type DaemonMcpServersTestRequest = z.infer<typeof DaemonMcpServersTestRequestSchema>;
export declare const DaemonMcpServersTestResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    toolCount: z.ZodNumber;
    toolNamesSample: z.ZodOptional<z.ZodArray<z.ZodString>>;
    durationMs: z.ZodNumber;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodEnum<{
        invalid_request: "invalid_request";
        missing_credentials: "missing_credentials";
        server_not_found: "server_not_found";
        binding_not_found: "binding_not_found";
        server_disabled: "server_disabled";
        materialization_failed: "materialization_failed";
        mcp_connect_failed: "mcp_connect_failed";
        mcp_list_tools_failed: "mcp_list_tools_failed";
    }>;
    error: z.ZodString;
    durationMs: z.ZodNumber;
}, z.core.$loose>]>;
export type DaemonMcpServersTestResponse = z.infer<typeof DaemonMcpServersTestResponseSchema>;
//# sourceMappingURL=daemonRpcV1.d.ts.map