/** * OpenAPI spec loading for `archrad ingest openapi` — local path or http(s) URL. */ export declare const INGEST_OPENAPI_UA = "archrad/ingest-openapi (+https://github.com/archradhq/arch-deterministic)"; /** Parse repeatable CLI `-H "Name: value"` into header map for `fetch`. */ export declare function parseHeaderPairs(pairs: string[]): Record; export declare function isHttpOrHttpsUrl(s: string): boolean; export declare const DEFAULT_ARCHRAD_UA = "archrad (+https://github.com/archradhq/arch-deterministic)"; export type ReadTextFromPathOrUrlOptions = { extraHeaders?: Record; /** Default: YAML + JSON + plain (GitHub raw works). */ accept?: string; userAgent?: string; }; /** * Read text from a local path or http(s) URL — shared by OpenAPI ingest, `yaml-to-ir`, etc. */ export declare function readTextFromPathOrUrl(pathOrUrl: string, opts?: ReadTextFromPathOrUrlOptions): Promise; /** Read OpenAPI document text from a local path or http(s) URL. */ export declare function readOpenApiSpecInput(spec: string, extraHeaders?: Record): Promise; //# sourceMappingURL=openapi.d.ts.map