import { z } from 'zod'; import type { AuthenticationConfiguration } from './authentication-configuration.js'; /** Configuration for the OpenAPI/Swagger specification */ export declare const specConfigurationSchema: z.ZodObject<{ url: z.ZodOptional; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; }, z.core.$strip>; export type SpecConfiguration = z.infer; /** Configuration for the Api Client */ export declare const apiClientConfigurationSchema: z.ZodObject<{ url: z.ZodOptional; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; spec: z.ZodOptional; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; }, z.core.$strip>>; authentication: z.ZodOptional; baseServerURL: z.ZodOptional; hideClientButton: z.ZodCatch>>; proxyUrl: z.ZodOptional; searchHotKey: z.ZodOptional>; servers: z.ZodOptional>; showSidebar: z.ZodCatch>>; showToolbar: z.ZodCatch>>>; operationTitleSource: z.ZodCatch>>>; theme: z.ZodCatch>>>; _integration: z.ZodOptional>>; onRequestSent: z.ZodOptional, z.ZodVoid>>; persistAuth: z.ZodCatch>>; plugins: z.ZodOptional, z.ZodObject<{ name: z.ZodString; views: z.ZodOptional; component: z.ZodUnknown; props: z.ZodOptional>; }, z.core.$strip>>>; 'response.section': z.ZodOptional; component: z.ZodUnknown; props: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>; hooks: z.ZodOptional; }, z.core.$strip>], null>, z.ZodUnion]>>>; onResponseReceived: z.ZodOptional; operation: z.ZodRecord; }, z.core.$strip>], null>, z.ZodUnion]>>>; }, z.core.$strip>>; }, z.core.$strip>>>>; telemetry: z.ZodDefault>; }, z.core.$strip>; export type ApiClientConfiguration = z.infer; /** Configuration for the Api Client without the transform since it cannot be merged */ declare const _apiReferenceConfigurationSchema: z.ZodObject<{ url: z.ZodOptional; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; spec: z.ZodOptional; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; }, z.core.$strip>>; authentication: z.ZodOptional; baseServerURL: z.ZodOptional; hideClientButton: z.ZodCatch>>; proxyUrl: z.ZodOptional; searchHotKey: z.ZodOptional>; servers: z.ZodOptional>; showSidebar: z.ZodCatch>>; showToolbar: z.ZodCatch>>>; operationTitleSource: z.ZodCatch>>>; theme: z.ZodCatch>>>; _integration: z.ZodOptional>>; onRequestSent: z.ZodOptional, z.ZodVoid>>; persistAuth: z.ZodCatch>>; telemetry: z.ZodDefault>; layout: z.ZodCatch>>>; proxy: z.ZodOptional; fetch: z.ZodOptional Promise, (input: string | URL | Request, init?: RequestInit) => Promise>>; plugins: z.ZodOptional, z.ZodObject<{ name: z.ZodString; extensions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>>>; isEditable: z.ZodCatch>>; isLoading: z.ZodCatch>>; hideModels: z.ZodCatch>>; documentDownloadType: z.ZodCatch>>>; hideDownloadButton: z.ZodOptional; hideTestRequestButton: z.ZodCatch>>; hideSearch: z.ZodCatch>>; showOperationId: z.ZodCatch>>; darkMode: z.ZodOptional; forceDarkModeState: z.ZodOptional>; hideDarkModeToggle: z.ZodCatch>>; metaData: z.ZodOptional; favicon: z.ZodOptional; hiddenClients: z.ZodOptional]>>, z.ZodArray, z.ZodLiteral]>>; defaultHttpClient: z.ZodOptional; clientKey: z.ZodString; }, z.core.$strip>>; customCss: z.ZodOptional; onSpecUpdate: z.ZodOptional, z.ZodVoid>>; onServerChange: z.ZodOptional, z.ZodVoid>>; onDocumentSelect: z.ZodType<(() => Promise | void) | undefined>; onLoaded: z.ZodType<(() => Promise | void) | undefined>; onBeforeRequest: z.ZodType<((a: { request: Request; }) => Promise | void) | undefined>; onShowMore: z.ZodType<((a: string) => Promise | void) | undefined>; onSidebarClick: z.ZodType<((a: string) => Promise | void) | undefined>; pathRouting: z.ZodOptional>; generateHeadingSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateModelSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateTagSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateOperationSlug: z.ZodOptional; method: z.ZodString; summary: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateWebhookSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; redirect: z.ZodOptional, z.ZodOptional>>>; withDefaultFonts: z.ZodCatch>>; defaultOpenAllTags: z.ZodCatch>>; expandAllModelSections: z.ZodCatch>>; expandAllResponses: z.ZodCatch>>; tagsSorter: z.ZodOptional, z.ZodFunction, z.ZodNumber>]>>; operationsSorter: z.ZodOptional, z.ZodLiteral<"method">, z.ZodFunction, z.ZodNumber>]>>; orderSchemaPropertiesBy: z.ZodCatch, z.ZodLiteral<"preserve">]>>>>; orderRequiredPropertiesFirst: z.ZodCatch>>; }, z.core.$strip>; /** Configuration for the Api Reference */ export declare const apiReferenceConfigurationSchema: z.ZodPipe; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; spec: z.ZodOptional; content: z.ZodOptional, z.ZodFunction, z.ZodRecord>]>>; title: z.ZodOptional; slug: z.ZodOptional; }, z.core.$strip>>; authentication: z.ZodOptional; baseServerURL: z.ZodOptional; hideClientButton: z.ZodCatch>>; proxyUrl: z.ZodOptional; searchHotKey: z.ZodOptional>; servers: z.ZodOptional>; showSidebar: z.ZodCatch>>; showToolbar: z.ZodCatch>>>; operationTitleSource: z.ZodCatch>>>; theme: z.ZodCatch>>>; _integration: z.ZodOptional>>; onRequestSent: z.ZodOptional, z.ZodVoid>>; persistAuth: z.ZodCatch>>; telemetry: z.ZodDefault>; layout: z.ZodCatch>>>; proxy: z.ZodOptional; fetch: z.ZodOptional Promise, (input: string | URL | Request, init?: RequestInit) => Promise>>; plugins: z.ZodOptional, z.ZodObject<{ name: z.ZodString; extensions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>>>; isEditable: z.ZodCatch>>; isLoading: z.ZodCatch>>; hideModels: z.ZodCatch>>; documentDownloadType: z.ZodCatch>>>; hideDownloadButton: z.ZodOptional; hideTestRequestButton: z.ZodCatch>>; hideSearch: z.ZodCatch>>; showOperationId: z.ZodCatch>>; darkMode: z.ZodOptional; forceDarkModeState: z.ZodOptional>; hideDarkModeToggle: z.ZodCatch>>; metaData: z.ZodOptional; favicon: z.ZodOptional; hiddenClients: z.ZodOptional]>>, z.ZodArray, z.ZodLiteral]>>; defaultHttpClient: z.ZodOptional; clientKey: z.ZodString; }, z.core.$strip>>; customCss: z.ZodOptional; onSpecUpdate: z.ZodOptional, z.ZodVoid>>; onServerChange: z.ZodOptional, z.ZodVoid>>; onDocumentSelect: z.ZodType<(() => Promise | void) | undefined>; onLoaded: z.ZodType<(() => Promise | void) | undefined>; onBeforeRequest: z.ZodType<((a: { request: Request; }) => Promise | void) | undefined>; onShowMore: z.ZodType<((a: string) => Promise | void) | undefined>; onSidebarClick: z.ZodType<((a: string) => Promise | void) | undefined>; pathRouting: z.ZodOptional>; generateHeadingSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateModelSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateTagSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateOperationSlug: z.ZodOptional; method: z.ZodString; summary: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; generateWebhookSlug: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString>>; redirect: z.ZodOptional, z.ZodOptional>>>; withDefaultFonts: z.ZodCatch>>; defaultOpenAllTags: z.ZodCatch>>; expandAllModelSections: z.ZodCatch>>; expandAllResponses: z.ZodCatch>>; tagsSorter: z.ZodOptional, z.ZodFunction, z.ZodNumber>]>>; operationsSorter: z.ZodOptional, z.ZodLiteral<"method">, z.ZodFunction, z.ZodNumber>]>>; orderSchemaPropertiesBy: z.ZodCatch, z.ZodLiteral<"preserve">]>>>>; orderRequiredPropertiesFirst: z.ZodCatch>>; }, z.core.$strip>, z.ZodTransform<{ hideClientButton: boolean; showSidebar: boolean; showToolbar: "never" | "always" | "localhost"; operationTitleSource: "summary" | "path"; theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; persistAuth: boolean; telemetry: boolean; layout: "modern" | "classic"; isEditable: boolean; isLoading: boolean; hideModels: boolean; documentDownloadType: "none" | "yaml" | "json" | "both" | "direct"; hideTestRequestButton: boolean; hideSearch: boolean; showOperationId: boolean; hideDarkModeToggle: boolean; onDocumentSelect: (() => Promise | void) | undefined; onLoaded: (() => Promise | void) | undefined; onBeforeRequest: ((a: { request: Request; }) => Promise | void) | undefined; onShowMore: ((a: string) => Promise | void) | undefined; onSidebarClick: ((a: string) => Promise | void) | undefined; withDefaultFonts: boolean; defaultOpenAllTags: boolean; expandAllModelSections: boolean; expandAllResponses: boolean; orderSchemaPropertiesBy: "alpha" | "preserve"; orderRequiredPropertiesFirst: boolean; url?: string | undefined; content?: string | Record | z.core.$InferOuterFunctionType, z.ZodRecord> | null | undefined; title?: string | undefined; slug?: string | undefined; spec?: { url?: string | undefined; content?: string | Record | z.core.$InferOuterFunctionType, z.ZodRecord> | null | undefined; title?: string | undefined; slug?: string | undefined; } | undefined; authentication?: any; baseServerURL?: string | undefined; proxyUrl?: string | undefined; searchHotKey?: "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined; servers?: any[] | undefined; _integration?: "go" | "rust" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "svelte" | "vue" | null | undefined; onRequestSent?: z.core.$InferOuterFunctionType, z.ZodVoid> | undefined; proxy?: string | undefined; fetch?: ((input: string | URL | Request, init?: RequestInit) => Promise) | undefined; plugins?: z.core.$InferOuterFunctionType, z.ZodObject<{ name: z.ZodString; extensions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>[] | undefined; hideDownloadButton?: boolean | undefined; darkMode?: boolean | undefined; forceDarkModeState?: "dark" | "light" | undefined; metaData?: any; favicon?: string | undefined; hiddenClients?: true | string[] | Record | undefined; defaultHttpClient?: { targetKey: "c" | "clojure" | "csharp" | "dart" | "http" | "go" | "java" | "js" | "kotlin" | "node" | "objc" | "ocaml" | "php" | "powershell" | "python" | "r" | "ruby" | "rust" | "shell" | "swift"; clientKey: string; } | undefined; customCss?: string | undefined; onSpecUpdate?: z.core.$InferOuterFunctionType, z.ZodVoid> | undefined; onServerChange?: z.core.$InferOuterFunctionType, z.ZodVoid> | undefined; pathRouting?: { basePath: string; } | undefined; generateHeadingSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; generateModelSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; generateTagSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; generateOperationSlug?: z.core.$InferOuterFunctionType; method: z.ZodString; summary: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString> | undefined; generateWebhookSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; redirect?: z.core.$InferOuterFunctionType, z.ZodOptional>> | undefined; tagsSorter?: "alpha" | z.core.$InferOuterFunctionType, z.ZodNumber> | undefined; operationsSorter?: "method" | "alpha" | z.core.$InferOuterFunctionType, z.ZodNumber> | undefined; }, { hideClientButton: boolean; showSidebar: boolean; showToolbar: "never" | "always" | "localhost"; operationTitleSource: "summary" | "path"; theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; persistAuth: boolean; telemetry: boolean; layout: "modern" | "classic"; isEditable: boolean; isLoading: boolean; hideModels: boolean; documentDownloadType: "none" | "yaml" | "json" | "both" | "direct"; hideTestRequestButton: boolean; hideSearch: boolean; showOperationId: boolean; hideDarkModeToggle: boolean; onDocumentSelect: (() => Promise | void) | undefined; onLoaded: (() => Promise | void) | undefined; onBeforeRequest: ((a: { request: Request; }) => Promise | void) | undefined; onShowMore: ((a: string) => Promise | void) | undefined; onSidebarClick: ((a: string) => Promise | void) | undefined; withDefaultFonts: boolean; defaultOpenAllTags: boolean; expandAllModelSections: boolean; expandAllResponses: boolean; orderSchemaPropertiesBy: "alpha" | "preserve"; orderRequiredPropertiesFirst: boolean; url?: string | undefined; content?: string | Record | z.core.$InferOuterFunctionType, z.ZodRecord> | null | undefined; title?: string | undefined; slug?: string | undefined; spec?: { url?: string | undefined; content?: string | Record | z.core.$InferOuterFunctionType, z.ZodRecord> | null | undefined; title?: string | undefined; slug?: string | undefined; } | undefined; authentication?: any; baseServerURL?: string | undefined; proxyUrl?: string | undefined; searchHotKey?: "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined; servers?: any[] | undefined; _integration?: "go" | "rust" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "svelte" | "vue" | null | undefined; onRequestSent?: z.core.$InferOuterFunctionType, z.ZodVoid> | undefined; proxy?: string | undefined; fetch?: ((input: string | URL | Request, init?: RequestInit) => Promise) | undefined; plugins?: z.core.$InferOuterFunctionType, z.ZodObject<{ name: z.ZodString; extensions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>[] | undefined; hideDownloadButton?: boolean | undefined; darkMode?: boolean | undefined; forceDarkModeState?: "dark" | "light" | undefined; metaData?: any; favicon?: string | undefined; hiddenClients?: true | string[] | Record | undefined; defaultHttpClient?: { targetKey: "c" | "clojure" | "csharp" | "dart" | "http" | "go" | "java" | "js" | "kotlin" | "node" | "objc" | "ocaml" | "php" | "powershell" | "python" | "r" | "ruby" | "rust" | "shell" | "swift"; clientKey: string; } | undefined; customCss?: string | undefined; onSpecUpdate?: z.core.$InferOuterFunctionType, z.ZodVoid> | undefined; onServerChange?: z.core.$InferOuterFunctionType, z.ZodVoid> | undefined; pathRouting?: { basePath: string; } | undefined; generateHeadingSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; generateModelSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; generateTagSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; generateOperationSlug?: z.core.$InferOuterFunctionType; method: z.ZodString; summary: z.ZodOptional; }, z.core.$strip>], null>, z.ZodString> | undefined; generateWebhookSlug?: z.core.$InferOuterFunctionType; }, z.core.$strip>], null>, z.ZodString> | undefined; redirect?: z.core.$InferOuterFunctionType, z.ZodOptional>> | undefined; tagsSorter?: "alpha" | z.core.$InferOuterFunctionType, z.ZodNumber> | undefined; operationsSorter?: "method" | "alpha" | z.core.$InferOuterFunctionType, z.ZodNumber> | undefined; }>>; /** Configuration after parsing, this is the main type */ export type ApiReferenceConfiguration = Omit, 'proxy' | 'spec' | 'authentication'> & { authentication?: AuthenticationConfiguration; }; /** Api Config which includes the default config */ type ApiReferenceConfigurationWithDefault = ApiReferenceConfiguration & { /** Whether to use this config as the default one */ default?: boolean; }; /** Configuration for a single config with sources */ export type ApiReferenceConfigurationWithSources = Omit & { sources: (SpecConfiguration & { default?: boolean; })[]; }; /** Configuration for multiple Api References */ export type AnyApiReferenceConfiguration = Partial | Partial | Partial[] | Partial[]; /** Typeguard to check to narrow the configs to the one with sources */ export declare const isConfigurationWithSources: (config: AnyApiReferenceConfiguration) => config is Partial; export {}; //# sourceMappingURL=api-reference-configuration.d.ts.map