import { z } from 'zod'; import type { McpRegistryServerEntity } from './mcp-registry-server.entity'; type McpRegistryServerUpsertRow = Pick; export declare const mcpRegistryExtendsCredentialSchema: z.ZodObject<{ extends: z.ZodString; authUrl: z.ZodOptional>; accessTokenUrl: z.ZodOptional>; scope: z.ZodOptional>; authQueryParameters: z.ZodOptional>; grantType: z.ZodOptional>>; authentication: z.ZodOptional>>; useDynamicClientRegistration: z.ZodOptional>; serverUrl: z.ZodOptional>; customScopes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { extends: string; authUrl?: string | null | undefined; accessTokenUrl?: string | null | undefined; scope?: string | null | undefined; authQueryParameters?: string | null | undefined; grantType?: "authorizationCode" | "clientCredentials" | "pkce" | null | undefined; authentication?: "body" | "header" | null | undefined; useDynamicClientRegistration?: boolean | null | undefined; serverUrl?: string | null | undefined; customScopes?: boolean | null | undefined; }, { extends: string; authUrl?: string | null | undefined; accessTokenUrl?: string | null | undefined; scope?: string | null | undefined; authQueryParameters?: string | null | undefined; grantType?: "authorizationCode" | "clientCredentials" | "pkce" | null | undefined; authentication?: "body" | "header" | null | undefined; useDynamicClientRegistration?: boolean | null | undefined; serverUrl?: string | null | undefined; customScopes?: boolean | null | undefined; }>; export type McpRegistryExtendsCredential = z.infer; export declare const mcpRegistryUsesCredentialSchema: z.ZodObject<{ credentialType: z.ZodString; name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { credentialType: string; name: string; value: string; }, { credentialType: string; name: string; value: string; }>; export declare const mcpRegistryUsesCredentialsSchema: z.ZodEffects, "many">, { credentialType: string; name: string; value: string; }[], { credentialType: string; name: string; value: string; }[]>; export type McpRegistryUsesCredential = z.infer; export declare const mcpRegistryServerSchema: z.ZodIntersection>, string | undefined, string | null | undefined>; version: z.ZodString; updatedAt: z.ZodString; icons: z.ZodArray>>, NonNullable<"image/jpeg" | "image/jpg" | "image/png" | "image/svg+xml" | "image/webp"> | undefined, "image/jpeg" | "image/jpg" | "image/png" | "image/svg+xml" | "image/webp" | null | undefined>; theme: z.ZodEffects>>, NonNullable<"dark" | "light"> | undefined, "dark" | "light" | null | undefined>; }, "strip", z.ZodTypeAny, { src: string; mimeType?: NonNullable<"image/jpeg" | "image/jpg" | "image/png" | "image/svg+xml" | "image/webp"> | undefined; theme?: NonNullable<"dark" | "light"> | undefined; }, { src: string; mimeType?: "image/jpeg" | "image/jpg" | "image/png" | "image/svg+xml" | "image/webp" | null | undefined; theme?: "dark" | "light" | null | undefined; }>, "many">; websiteUrl: z.ZodEffects>, string | undefined, string | null | undefined>; remotes: z.ZodArray; url: z.ZodString; headers: z.ZodEffects>>, Record | undefined, Record | null | undefined>; }, "strip", z.ZodTypeAny, { type: "sse" | "streamable-http" | "streamable-http-templated"; url: string; headers?: Record | undefined; }, { type: "sse" | "streamable-http" | "streamable-http-templated"; url: string; headers?: Record | null | undefined; }>, "many">; tools: z.ZodArray>, string | undefined, string | null | undefined>; annotations: z.ZodEffects>, boolean | undefined, boolean | null | undefined>; }, "strip", z.ZodTypeAny, { readOnlyHint?: boolean | undefined; }, { readOnlyHint?: boolean | null | undefined; }>>>, { readOnlyHint?: boolean | undefined; } | undefined, { readOnlyHint?: boolean | null | undefined; } | null | undefined>; }, "strip", z.ZodTypeAny, { name: string; title?: string | undefined; annotations?: { readOnlyHint?: boolean | undefined; } | undefined; }, { name: string; title?: string | null | undefined; annotations?: { readOnlyHint?: boolean | null | undefined; } | null | undefined; }>, "many">; isOfficial: z.ZodBoolean; origin: z.ZodLiteral<"registry">; status: z.ZodEnum<["active", "deprecated"]>; requiredCapabilities: z.ZodEffects>>, string[] | undefined, string[] | null | undefined>; tags: z.ZodEffects, z.ZodObject<{ data: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { data?: string[] | null | undefined; }, { data?: string[] | null | undefined; }>]>>>, string[] | undefined, string[] | { data?: string[] | null | undefined; } | null | undefined>; }, "strip", z.ZodTypeAny, { name: string; slug: string; title: string; description: string; tagline: string; attribution?: string | undefined; version: string; updatedAt: string; icons: { src: string; mimeType?: NonNullable<"image/jpeg" | "image/jpg" | "image/png" | "image/svg+xml" | "image/webp"> | undefined; theme?: NonNullable<"dark" | "light"> | undefined; }[]; websiteUrl?: string | undefined; remotes: { type: "sse" | "streamable-http" | "streamable-http-templated"; url: string; headers?: Record | undefined; }[]; tools: { name: string; title?: string | undefined; annotations?: { readOnlyHint?: boolean | undefined; } | undefined; }[]; isOfficial: boolean; origin: "registry"; status: "active" | "deprecated"; requiredCapabilities?: string[] | undefined; tags?: string[] | undefined; }, { name: string; slug: string; title: string; description: string; tagline: string; attribution?: string | null | undefined; version: string; updatedAt: string; icons: { src: string; mimeType?: "image/jpeg" | "image/jpg" | "image/png" | "image/svg+xml" | "image/webp" | null | undefined; theme?: "dark" | "light" | null | undefined; }[]; websiteUrl?: string | null | undefined; remotes: { type: "sse" | "streamable-http" | "streamable-http-templated"; url: string; headers?: Record | null | undefined; }[]; tools: { name: string; title?: string | null | undefined; annotations?: { readOnlyHint?: boolean | null | undefined; } | null | undefined; }[]; isOfficial: boolean; origin: "registry"; status: "active" | "deprecated"; requiredCapabilities?: string[] | null | undefined; tags?: string[] | { data?: string[] | null | undefined; } | null | undefined; }>, z.ZodDiscriminatedUnion<"authType", [z.ZodObject<{ authType: z.ZodLiteral<"oauth2">; }, "strip", z.ZodTypeAny, { authType: "oauth2"; }, { authType: "oauth2"; }>, z.ZodObject<{ authType: z.ZodLiteral<"extendsCredential">; extendsCredential: z.ZodObject<{ extends: z.ZodString; authUrl: z.ZodOptional>; accessTokenUrl: z.ZodOptional>; scope: z.ZodOptional>; authQueryParameters: z.ZodOptional>; grantType: z.ZodOptional>>; authentication: z.ZodOptional>>; useDynamicClientRegistration: z.ZodOptional>; serverUrl: z.ZodOptional>; customScopes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { extends: string; authUrl?: string | null | undefined; accessTokenUrl?: string | null | undefined; scope?: string | null | undefined; authQueryParameters?: string | null | undefined; grantType?: "authorizationCode" | "clientCredentials" | "pkce" | null | undefined; authentication?: "body" | "header" | null | undefined; useDynamicClientRegistration?: boolean | null | undefined; serverUrl?: string | null | undefined; customScopes?: boolean | null | undefined; }, { extends: string; authUrl?: string | null | undefined; accessTokenUrl?: string | null | undefined; scope?: string | null | undefined; authQueryParameters?: string | null | undefined; grantType?: "authorizationCode" | "clientCredentials" | "pkce" | null | undefined; authentication?: "body" | "header" | null | undefined; useDynamicClientRegistration?: boolean | null | undefined; serverUrl?: string | null | undefined; customScopes?: boolean | null | undefined; }>; }, "strip", z.ZodTypeAny, { authType: "extendsCredential"; extendsCredential: { extends: string; authUrl?: string | null | undefined; accessTokenUrl?: string | null | undefined; scope?: string | null | undefined; authQueryParameters?: string | null | undefined; grantType?: "authorizationCode" | "clientCredentials" | "pkce" | null | undefined; authentication?: "body" | "header" | null | undefined; useDynamicClientRegistration?: boolean | null | undefined; serverUrl?: string | null | undefined; customScopes?: boolean | null | undefined; }; }, { authType: "extendsCredential"; extendsCredential: { extends: string; authUrl?: string | null | undefined; accessTokenUrl?: string | null | undefined; scope?: string | null | undefined; authQueryParameters?: string | null | undefined; grantType?: "authorizationCode" | "clientCredentials" | "pkce" | null | undefined; authentication?: "body" | "header" | null | undefined; useDynamicClientRegistration?: boolean | null | undefined; serverUrl?: string | null | undefined; customScopes?: boolean | null | undefined; }; }>, z.ZodObject<{ authType: z.ZodLiteral<"usesCredentials">; usesCredentials: z.ZodEffects, "many">, { credentialType: string; name: string; value: string; }[], { credentialType: string; name: string; value: string; }[]>; }, "strip", z.ZodTypeAny, { authType: "usesCredentials"; usesCredentials: { credentialType: string; name: string; value: string; }[]; }, { authType: "usesCredentials"; usesCredentials: { credentialType: string; name: string; value: string; }[]; }>]>>; export type McpRegistryServer = z.output; export type McpRegistryIcon = McpRegistryServer['icons'][number]; export type McpRegistryRemote = McpRegistryServer['remotes'][number]; export type McpRegistryRemoteType = McpRegistryRemote['type']; export type McpRegistryTool = McpRegistryServer['tools'][number]; export type McpRegistryToolAnnotations = NonNullable; export declare function parseMcpRegistryServer(value: unknown): McpRegistryServer | null; export declare function toEntity(server: McpRegistryServer): McpRegistryServerUpsertRow; export declare function fromEntity(entity: McpRegistryServerEntity): McpRegistryServer; export {};