export function onceFrame( ws: unknown, filter: (message: Record) => boolean, timeoutMs?: number, ): Promise>;