/** WindowsのCursorはhookのstdinのJSONの先頭にBOM(U+FEFF)を付ける。JSONとして読む前に落とす。 */ export declare function withoutBom(text: string): string; export declare function writeJson0600(p: string, v: unknown): void; export declare function writeHookJson(file: string, value: unknown): void; /** directory内の状態変化を待つ。inspectが値を返した時点でresolveする。timeoutMsを省くと期限なし。 * signalがabortされると WAIT_FOR_FILE_ABORTED でrejectする。 */ export declare function waitForFileState(dir: string, inspect: () => T | undefined, timeoutMs?: number, signal?: AbortSignal): Promise;