import { z } from 'zod';
/**
 * Exhaustive error codes for Stitch operations.
 * Add new codes here as needed.
 */
export declare const StitchErrorCode: z.ZodEnum<{
    AUTH_FAILED: "AUTH_FAILED";
    UNKNOWN_ERROR: "UNKNOWN_ERROR";
    NOT_FOUND: "NOT_FOUND";
    PERMISSION_DENIED: "PERMISSION_DENIED";
    RATE_LIMITED: "RATE_LIMITED";
    NETWORK_ERROR: "NETWORK_ERROR";
    VALIDATION_ERROR: "VALIDATION_ERROR";
}>;
export type StitchErrorCode = z.infer<typeof StitchErrorCode>;
/**
 * Structured error data for internal Result types.
 */
export interface StitchErrorData {
    code: StitchErrorCode;
    message: string;
    suggestion?: string;
    recoverable: boolean;
}
/**
 * Throwable error class for the public API.
 * Extends Error so it works with try/catch and instanceof checks.
 */
export declare class StitchError extends Error {
    readonly code: StitchErrorCode;
    readonly suggestion?: string;
    readonly recoverable: boolean;
    constructor(data: StitchErrorData);
    /**
     * Create a StitchError from an unknown caught error.
     */
    static fromUnknown(error: unknown): StitchError;
}
//# sourceMappingURL=errors.d.ts.map