import type { EventEmitter } from 'events'; import type { AbstractLevel } from 'abstract-level'; import type { TermName, StreamLike } from '../types/index.js'; export declare const isObject: (o: any) => boolean; export declare const isAbstractLevel: (o: any) => o is AbstractLevel; export declare const ensureAbstractLevel: (o: any, key: string) => void; export declare const streamToArray: (source: StreamLike) => Promise; export declare const resolveOnEvent: (emitter: EventEmitter, event: string, rejectOnError?: boolean) => Promise; export declare const waitForEvent: (emitter: EventEmitter, event: string, rejectOnError?: boolean) => Promise; export declare const arrStartsWith: (arr: TermName[], prefix: TermName[]) => boolean;