import type { Invitation } from './invitation.ts'; import { Ephemeral, type Draw } from './keys.ts'; import { type Reply } from './reply.ts'; export type Read = Reply | { readonly nothing: true; }; type Knock = { readonly bytes: string; readonly lid: string; readonly next: string; readonly edge: string; readonly seq: number; }; export type StandingState = { readonly key: string | null; readonly edge: string | null; readonly sent: number; readonly moved: number; readonly knock: Knock | null; readonly probed: boolean; }; export declare const freshStanding: () => StandingState; export type Sent = { readonly bytes: Uint8Array; readonly lid: Ephemeral; readonly next: string; readonly edge: string; readonly seq: number; }; export declare class Standing { #private; readonly invitation: Invitation; state: StandingState; readonly draw: Draw; constructor(invitation: Invitation, state: StandingState, draw: Draw); ask(method?: string, args?: string): Promise; read(sent: Sent, bytes: Uint8Array | null): Promise; } export {};