/// import urlMod from "url"; import { NullableSourceText } from "./source-map/source-store"; /** * Returns the `string` corresponding to the provided URL record. */ export declare type GetText = (url: Readonly) => Promise; /** * Synchronous variant of `GetText`. */ export declare type GetTextSync = (url: Readonly) => string; /** * Returns the string corresponding to the provided `url`. * * @param url URL for the text content. */ export declare function getText(url: Readonly): Promise; /** * Synchronous variant of `getText`. */ export declare function getTextSync(url: Readonly): string; export declare function getTextByDataUrl(url: Readonly): string; export declare function getTextByFileUrl(url: Readonly): Promise; export declare function getTextByFileUrlSync(url: Readonly): string; export declare function getTextSyncFromSourceStore(_sources: Iterable<[string, NullableSourceText]>): GetTextSync;