astro-ghostcms/.pnpm-store/v3/files/e1/5f55f1341fc63af559fc2ab0b7a...

25 lines
918 B
Plaintext

export * as _ from 'vscode-uri';
interface Options<T> {
delete(key: string): boolean;
get(key: string): T | undefined;
has(key: string): boolean;
set(key: string, value: T): void;
clear(): void;
values(): IterableIterator<T>;
keys(): IterableIterator<string>;
}
export type UriMap<T> = ReturnType<typeof createUriMap<T>>;
export declare function createUriMap<T>(fileNameToUri: (fileName: string) => string, map?: Options<T>): {
clear: () => void;
values: () => IterableIterator<T>;
uriKeys: () => IterableIterator<string>;
uriDelete: (_uri: string) => boolean;
uriGet: (_uri: string) => T | undefined;
uriHas: (_uri: string) => boolean;
uriSet: (_uri: string, item: T) => void;
pathDelete: (path: string) => boolean;
pathGet: (path: string) => T | undefined;
pathHas: (path: string) => T | undefined;
pathSet: (path: string, item: T) => void;
};