import type { ProposalBasis } from "./proposals.js"; import type { Board } from "./model.js"; import type { Entry, Op } from "./ops.js"; /** How long the daemon gets to answer before the wait is called a failure. A daemon that is wedged, * or one whose port was inherited by something else, otherwise hangs the agent's call forever. */ export declare const DAEMON_TIMEOUT = 10000; export declare const daemonTimeout: (ms: number) => string; /** A Store that lives in a daemon. Same surface as Store; every call is a request. */ export declare class RemoteStore { base: string; agent: string; timeoutMs: number; constructor(base: string, agent?: string, timeoutMs?: number); get dir(): string; /** Every request to the daemon goes through here, so every one of them has a deadline. */ private ask; private j; list(): Promise; has(board: string): Promise; entries(board: string): Promise; board(board: string): Promise; proposals(board: string): Promise; append(board: string, ops: Op[], by?: string, propose?: boolean, preconditions?: ProposalBasis[]): Promise; branch(base: string, name: string, title: string, baselineName?: string, capturedBy?: string): Promise; baseline(board: string): Promise; undo(board: string, by?: string): Promise; watch(_cb: () => void): () => void; hello(id: string, name: string, board?: string, sampling?: boolean): Promise; bye(id: string): Promise; }