export type Assert = T; export type Equal = (() => T extends X ? 1 : 2) extends () => T extends Y ? 1 : 2 ? true : false; export type FunctionContext = T extends (this: infer U, ...args: any[]) => any ? U : unknown; export declare function drain(stream: ReadableStream): Promise; export declare function readChunks(stream: ReadableStream): AsyncGenerator; export declare function withResolvers(): readonly [Promise, (value: T | PromiseLike) => void]; export declare function waitForMutations(target: Node, work?: () => void): Promise; export declare function waitFor(target: Node, predicate: () => boolean, work?: () => void): Promise; export declare function observeMutations(target: Node): { consume(): MutationRecord[]; }; export declare function findCommentMarkers(container: Node, id: string): [Comment, Comment]; export declare function simulateBrowserDocument(container: HTMLElement, stream: ReadableStream): { nextChunk: () => Promise<{ done: boolean; value: undefined; } | { done: boolean; value?: undefined; }>; releaseLock: () => void; }; //# sourceMappingURL=utils.d.ts.map