import type { ErrorShape } from "./types.js";
export declare const ErrorCodes: {
    readonly NOT_LINKED: "NOT_LINKED";
    readonly NOT_PAIRED: "NOT_PAIRED";
    readonly AGENT_TIMEOUT: "AGENT_TIMEOUT";
    readonly INVALID_REQUEST: "INVALID_REQUEST";
    readonly FORBIDDEN: "FORBIDDEN";
    readonly UNAVAILABLE: "UNAVAILABLE";
    readonly NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
    /** Phase D-0g-2: write rejected because the resource changed since the
     * client last read it (mtime/etag mismatch). Details payload carries
     * `{ expectedMtimeMs, actualMtimeMs }` so the client can fetch and merge. */
    readonly CONFLICT: "CONFLICT";
};
export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
export declare function errorShape(code: ErrorCode, message: string, opts?: {
    details?: unknown;
    retryable?: boolean;
    retryAfterMs?: number;
}): ErrorShape;
