import type { MarkdownRenderHook } from '@scalar/helpers/markdown/markdown-render-hook'; import { z } from 'zod'; declare const openApiExtensionSchema: z.ZodObject<{ name: z.ZodString; component: z.ZodUnknown; renderer: z.ZodOptional; }, z.core.$strip>; declare const viewComponentSchema: z.ZodObject<{ component: z.ZodUnknown; renderer: z.ZodOptional; props: z.ZodOptional>; sidebar: z.ZodOptional; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** * Read-only view of the stored secrets for a single security scheme. * * The concrete shape depends on the scheme `type` (`apiKey`, `http`, `oauth2`, `openIdConnect`), * so only `type` is guaranteed. The remaining fields (tokens, credentials, per-flow secrets) are * exposed loosely to avoid coupling the plugin API to the workspace store's internal schema. */ export type PluginAuthSecrets = { type: string; } & Record; /** Read-only view of the selected security for a document or operation. */ export type PluginSelectedSecurity = { /** Index of the currently selected security requirement. */ selectedIndex: number; /** The selected security requirements, each mapping a scheme name to its selected scopes. */ selectedSchemes: Array>; }; /** Read-only view of the entire authentication state, keyed by document name. */ export type PluginDocumentAuth = Record; /** Selected security schemes at the document and operation level. */ selected: { document?: PluginSelectedSecurity; path?: Record>; }; }>; /** * Read-only accessor for the global authentication state. * * Passed to plugin lifecycle hooks (`onInit`, `onConfigChange`) and exposed via the plugin * manager (`getAuthState`) so plugins can read stored secrets and selected security schemes * without being able to mutate them. */ export type PluginAuthState = { /** Returns a plain snapshot of the entire authentication state, keyed by document name. */ export: () => PluginDocumentAuth; /** Returns the stored secrets for a security scheme within a document, or `undefined` if none. */ getAuthSecrets: (documentName: string, schemeName: string) => PluginAuthSecrets | undefined; /** Returns the selected security for a document or operation, or `undefined` if none. */ getAuthSelectedSchemas: (payload: { type: 'document'; documentName: string; } | { type: 'operation'; documentName: string; path: string; method: string; }) => PluginSelectedSecurity | undefined; }; declare const lifecycleHooksSchema: z.ZodObject<{ onInit: z.ZodOptional>; slug: z.ZodOptional>; authentication: z.ZodOptional>; baseServerURL: z.ZodOptional>; hideClientButton: z.ZodOptional>>>; proxyUrl: z.ZodOptional>; oauth2RedirectUri: z.ZodOptional>; searchHotKey: z.ZodOptional>>; servers: z.ZodOptional>>; showSidebar: z.ZodOptional>>>; showDeveloperTools: z.ZodOptional>>>>; showToolbar: z.ZodOptional>>>>; operationTitleSource: z.ZodOptional>>>>; theme: z.ZodOptional>>>>; _integration: z.ZodOptional>>>; onRequestSent: z.ZodOptional, z.ZodVoid>>>; persistAuth: z.ZodOptional>>>; 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], null>, z.core.$ZodFunctionOut>>; onResponseReceived: z.ZodOptional; operation: z.ZodRecord; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; }, z.core.$strip>>; }, z.core.$strip>>>>>; telemetry: z.ZodOptional>>; externalUrls: z.ZodOptional; registryUrl: z.ZodPrefault; proxyUrl: z.ZodPrefault; apiBaseUrl: z.ZodPrefault; }, z.core.$strip>>>; }, z.core.$strip>; auth: z.ZodCustom; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; onConfigChange: z.ZodOptional>; slug: z.ZodOptional>; authentication: z.ZodOptional>; baseServerURL: z.ZodOptional>; hideClientButton: z.ZodOptional>>>; proxyUrl: z.ZodOptional>; oauth2RedirectUri: z.ZodOptional>; searchHotKey: z.ZodOptional>>; servers: z.ZodOptional>>; showSidebar: z.ZodOptional>>>; showDeveloperTools: z.ZodOptional>>>>; showToolbar: z.ZodOptional>>>>; operationTitleSource: z.ZodOptional>>>>; theme: z.ZodOptional>>>>; _integration: z.ZodOptional>>>; onRequestSent: z.ZodOptional, z.ZodVoid>>>; persistAuth: z.ZodOptional>>>; 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], null>, z.core.$ZodFunctionOut>>; onResponseReceived: z.ZodOptional; operation: z.ZodRecord; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; }, z.core.$strip>>; }, z.core.$strip>>>>>; telemetry: z.ZodOptional>>; externalUrls: z.ZodOptional; registryUrl: z.ZodPrefault; proxyUrl: z.ZodPrefault; apiBaseUrl: z.ZodPrefault; }, z.core.$strip>>>; }, z.core.$strip>; auth: z.ZodCustom; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; onDestroy: z.ZodOptional, z.core.$ZodFunctionOut>>; }, z.core.$strip>; export declare const apiReferencePluginSchema: z.ZodFunction, z.ZodObject<{ name: z.ZodString; extensions: z.ZodArray; }, z.core.$strip>>; views: z.ZodOptional; props: z.ZodOptional>; sidebar: z.ZodOptional; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>>; 'content.end': z.ZodOptional; props: z.ZodOptional>; sidebar: z.ZodOptional; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>>; }, z.core.$strip>>; markdown: z.ZodOptional>; hooks: z.ZodOptional>; slug: z.ZodOptional>; authentication: z.ZodOptional>; baseServerURL: z.ZodOptional>; hideClientButton: z.ZodOptional>>>; proxyUrl: z.ZodOptional>; oauth2RedirectUri: z.ZodOptional>; searchHotKey: z.ZodOptional>>; servers: z.ZodOptional>>; showSidebar: z.ZodOptional>>>; showDeveloperTools: z.ZodOptional>>>>; showToolbar: z.ZodOptional>>>>; operationTitleSource: z.ZodOptional>>>>; theme: z.ZodOptional>>>>; _integration: z.ZodOptional>>>; onRequestSent: z.ZodOptional, z.ZodVoid>>>; persistAuth: z.ZodOptional>>>; 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], null>, z.core.$ZodFunctionOut>>; onResponseReceived: z.ZodOptional; operation: z.ZodRecord; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; }, z.core.$strip>>; }, z.core.$strip>>>>>; telemetry: z.ZodOptional>>; externalUrls: z.ZodOptional; registryUrl: z.ZodPrefault; proxyUrl: z.ZodPrefault; apiBaseUrl: z.ZodPrefault; }, z.core.$strip>>>; }, z.core.$strip>; auth: z.ZodCustom; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; onConfigChange: z.ZodOptional>; slug: z.ZodOptional>; authentication: z.ZodOptional>; baseServerURL: z.ZodOptional>; hideClientButton: z.ZodOptional>>>; proxyUrl: z.ZodOptional>; oauth2RedirectUri: z.ZodOptional>; searchHotKey: z.ZodOptional>>; servers: z.ZodOptional>>; showSidebar: z.ZodOptional>>>; showDeveloperTools: z.ZodOptional>>>>; showToolbar: z.ZodOptional>>>>; operationTitleSource: z.ZodOptional>>>>; theme: z.ZodOptional>>>>; _integration: z.ZodOptional>>>; onRequestSent: z.ZodOptional, z.ZodVoid>>>; persistAuth: z.ZodOptional>>>; 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], null>, z.core.$ZodFunctionOut>>; onResponseReceived: z.ZodOptional; operation: z.ZodRecord; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; }, z.core.$strip>>; }, z.core.$strip>>>>>; telemetry: z.ZodOptional>>; externalUrls: z.ZodOptional; registryUrl: z.ZodPrefault; proxyUrl: z.ZodPrefault; apiBaseUrl: z.ZodPrefault; }, z.core.$strip>>>; }, z.core.$strip>; auth: z.ZodCustom; }, z.core.$strip>], null>, z.core.$ZodFunctionOut>>; onDestroy: z.ZodOptional, z.core.$ZodFunctionOut>>; }, z.core.$strip>>; apiClientPlugins: z.ZodOptional>; }, z.core.$strip>>; export type SpecificationExtension = z.infer; export type ViewComponent = z.infer; export type LifecycleHooks = z.infer; export type ApiReferencePlugin = z.infer; export {}; //# sourceMappingURL=api-reference-plugin.d.ts.map