import { NotionAPIError } from '../../../../core/notion/client.ts';
import type { CLIVerbFn } from '../../types.ts';
import type { NtnAccessor } from './util.ts';
export declare class HintedAPIError extends NotionAPIError {
    readonly hint: string;
    constructor(base: NotionAPIError, hint: string);
}
export declare function sourceHint(ref: string): string;
export declare function apiFailure(err: NotionAPIError): [string, number];
export declare const GUARDED: unique symbol;
export declare function guarded(fn: CLIVerbFn<NtnAccessor>): CLIVerbFn<NtnAccessor>;
//# sourceMappingURL=failure.d.ts.map