import { Action, MessageType, Session, Snapshot } from "@canvas-js/interfaces"; import { SignedMessage } from "@canvas-js/gossiplog"; import { Config, ModelValue, PrimaryKeyValue } from "@canvas-js/modeldb"; import type { ClientSyncStatus } from "./Canvas.js"; export declare const isAction: (signedMessage: SignedMessage) => signedMessage is SignedMessage; export declare const isSession: (signedMessage: SignedMessage) => signedMessage is SignedMessage; export declare const isSnapshot: (signedMessage: SignedMessage) => signedMessage is SignedMessage; export declare const namespacePattern: RegExp; export declare function getErrorMessage(err: unknown): string; export declare function wait(interval: number, options: { signal: AbortSignal; }): Promise; export declare function encodeRecordKey(config: Config, modelName: string, primaryKey: PrimaryKeyValue | PrimaryKeyValue[]): string; export declare function decodeRecordKey(config: Config, modelName: string, key: string): PrimaryKeyValue | PrimaryKeyValue[]; export declare function encodeRecordValue(config: Config, modelName: string, value: ModelValue | null): Uint8Array; export declare function decodeRecordValue(config: Config, modelName: string, value: Uint8Array): T | null; export declare function getRecordId(model: string, key: PrimaryKeyValue | PrimaryKeyValue[]): string; export declare const stripBundleFilename: (bundle: string) => string; export declare const renderSyncStatus: (status: ClientSyncStatus, long?: boolean) => "Sync offline" | "Offline" | "Sync starting" | "Starting" | "Syncing..." | "Syncing" | "Sync complete" | "Complete" | "Sync error" | "Error" | "Sync unexpected" | "Unexpected";