import { type LoaderPlugin } from '@scalar/json-magic/bundle'; import { fetchUrls } from '@scalar/json-magic/bundle/plugins/browser'; import type { ExampleObject } from '../schemas/v3.2/strict/openapi-document.js'; /** Download state lives outside the document so reading an example never creates an edit. */ export type ExternalExampleState = { status: 'idle' | 'loading' | 'loaded' | 'error'; value?: unknown; /** Preserve wire text when a 3.2 example also supplies structured data. */ serializedValue?: string; load: () => Promise; }; /** A resolver belongs to one document revision and its configured transport. */ export type ExternalExampleResolver = (example: ExampleObject) => ExternalExampleState; /** Cache external payloads and in-flight requests without changing authored examples. */ export declare const createExternalExampleResolver: (options?: Parameters[0] & { origin?: string; fileLoader?: LoaderPlugin; }) => ExternalExampleResolver; //# sourceMappingURL=external-examples.d.ts.map