import type { ConnectError } from "@connectrpc/connect"; import { NotOK } from "@cerbos/core"; import type { FileError } from "../types.js"; /** * Error thrown when attempting to modify a store that is connected to a Git repository. */ export declare class CannotModifyGitConnectedStore extends NotOK { /** @internal */ constructor(error: ConnectError); } /** * Error thrown when a store modification is rejected because the condition specified in the request wasn't met. */ export declare class ConditionUnsatisfied extends NotOK { /** * The current version of the store. */ readonly currentStoreVersion: bigint; /** @internal */ constructor(error: ConnectError, /** * The current version of the store. */ currentStoreVersion: bigint); } /** * Error thrown on failure to load credentials from environment variables. */ export declare class MissingCredentials extends Error { /** @internal */ constructor(); } /** * Error thrown when {@link StoresClient.replaceFiles} fails because the request didn't contain any usable files. */ export declare class NoUsableFiles extends NotOK { /** * Paths of files that were provided in the request but were ignored. * * @remarks * Files with unexpected paths, for example hidden files, will be ignored. */ readonly ignoredFiles: string[]; /** @internal */ constructor(error: ConnectError, /** * Paths of files that were provided in the request but were ignored. * * @remarks * Files with unexpected paths, for example hidden files, will be ignored. */ ignoredFiles: string[]); } /** * Error thrown when a store modification is aborted because it doesn't change the state of the store. * * @remarks * Use the `allowUnchanged` request parameter to avoid throwing an error and return the current store version instead. */ export declare class OperationDiscarded extends NotOK { /** * The current version of the store. */ readonly currentStoreVersion: bigint; /** * Paths of files that were provided in the request but were ignored. * * @remarks * Files with unexpected paths, for example hidden files, will be ignored. */ readonly ignoredFiles: string[]; /** @internal */ constructor(error: ConnectError, /** * The current version of the store. */ currentStoreVersion: bigint, /** * Paths of files that were provided in the request but were ignored. * * @remarks * Files with unexpected paths, for example hidden files, will be ignored. */ ignoredFiles: string[]); } /** * Error thrown when a store modification is rejected because it contains invalid files. */ export declare class ValidationFailure extends NotOK { /** * The validation failures. */ readonly errors: FileError[]; /** @internal */ constructor(error: ConnectError, /** * The validation failures. */ errors: FileError[]); } //# sourceMappingURL=external.d.ts.map