export * from "./easy_fs.js"; export declare const restoreDirHandle: (newHandle?: FileSystemDirectoryHandle | null) => Promise; export declare const pickDirHandle: () => Promise; /** * Prompts the user to select a directory, but prioritizes a restored handle if provided. * @param restoredHandle - An optional, previously stored directory handle. * @returns The selected or restored directory handle. * @throws An error if the user cancels the prompt. */ export declare const prepareDirHandle: import("@gaubee/util").FuncRemember<() => Promise, void | ((this: unknown) => any)>; export declare const styles: { header: string; info: string; success: string; error: string; code: string; warn: string; }; export declare const arrayFromAsync: (iter: AsyncIterableIterator) => Promise; export declare const getTargetNamespace: () => string; export interface AbortOptions { signal?: AbortSignal; } export declare const delay: (ms: number, { signal }?: AbortOptions) => Promise; export declare const raf: () => Promise; export declare const whileRaf: (condition: () => boolean, { timeout, signal }?: TimeoutOptions) => Promise; export declare const untilRaf: (condition: () => boolean, { timeout, signal }?: TimeoutOptions) => Promise; interface IntervalTimeoutOptions extends TimeoutOptions { frameMs?: number; } export declare const whileDelay: (condition: () => boolean | Promise, { timeout, frameMs, signal }?: IntervalTimeoutOptions) => Promise; export declare const untilDelay: (condition: () => boolean | Promise, { timeout, frameMs, signal }?: IntervalTimeoutOptions) => Promise; export declare const aFollowedByB: (el: HTMLElement, aSelector: string, bSelector: string, cb: (aEle: HTMLElement, bEle: HTMLElement) => void) => () => void; export declare const $: (selectors: string) => E | null; interface TimeoutOptions extends AbortOptions { timeout?: number; signal?: AbortSignal; } export declare const while$: (selectors: string, options?: TimeoutOptions) => Promise; export declare const easy$: (selectors: string, options?: TimeoutOptions) => Awaited; export declare const $$: (selectors: string) => NodeListOf; //# sourceMappingURL=utils.d.ts.map