import type { OpenApiDocument } from "./generate.js";
export interface OpenApiSourceFileSystem {
    readFile(filePath: string, encoding: BufferEncoding): Promise<string>;
}
export interface OpenApiSourceServices {
    cwd: string;
    fetch: typeof globalThis.fetch;
    fs: OpenApiSourceFileSystem;
}
export declare function readOpenApiSourceText(input: string | URL, services: OpenApiSourceServices): Promise<string>;
export declare function parseOpenApiDocument(sourceText: string, input: string | URL): OpenApiDocument;
