import { type ComponentPublicInstance, type ComputedRef, type InjectionKey, type Ref } from 'vue'; import { type ExternalExampleResolver } from '../helpers/external-examples.js'; import type { ExampleObject } from '../schemas/v3.2/strict/openapi-document.js'; /** Supply the current document's resolver so consumers share downloads and invalidation. */ export declare const EXTERNAL_EXAMPLES: InjectionKey<() => ExternalExampleResolver>; /** Observe current visibility, rather than mounting, to avoid fetching every operation on a long page. */ export declare const useExampleVisibility: (target: Ref) => Ref; /** Resolve only the selected examples and expose immutable views of their downloaded values. */ export declare const useExternalExamples: (examples: () => (ExampleObject | undefined)[], enabled?: () => boolean, resolver?: () => ExternalExampleResolver) => { pending: ComputedRef; failed: ComputedRef; resolve: (example: ExampleObject | undefined) => ExampleObject | undefined; retry: () => Promise; }; //# sourceMappingURL=use-external-examples.d.ts.map