import type { NimiError, NimiErrorSource } from '../types/index.js';
import type { JsonObject } from '../internal/utils.js';
export type CreateNimiErrorInput = {
    message: string;
    code?: string;
    reasonCode: string;
    actionHint?: string;
    traceId?: string;
    retryable?: boolean;
    source?: NimiErrorSource;
    details?: JsonObject;
};
export declare function isNimiError(error: unknown): error is NimiError;
export declare function createNimiError(input: CreateNimiErrorInput): NimiError;
export declare function asNimiError(error: unknown, defaults?: Partial<CreateNimiErrorInput>): NimiError;
//# sourceMappingURL=errors.d.ts.map