import type { ConfigFormat } from "./config-format.ts"; declare const CliConfigParseError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "CliConfigParseError"; } & Readonly; export declare class CliConfigParseError extends CliConfigParseError_base<{ readonly path: string; readonly format: ConfigFormat; readonly cause: unknown; /** * The pre-decode `edge_runtime` subtree, present only when a schema decode failure discarded * the rest of the document (schema decode is all-or-nothing). `edge_runtime.secrets` values * stay wrapped in `Redacted` so this can't leak a resolved secret if left uncaught. */ readonly document?: { readonly edge_runtime?: unknown; }; /** * Name of the matched `[remotes.]` block; present even when the decode itself fails, * since remote selection happens first. Mirrors {@link LoadedCliConfig}'s `appliedRemote`. */ readonly appliedRemote?: string; }> { } /** Formats a {@link ProjectConfigParseError} message, appending the API-attributes path when given. */ export declare function formatProjectConfigParseErrorMessage(detail: string, apiPath?: ReadonlyArray): string; /** Suggested remediation attached to every {@link ProjectConfigParseError}. */ export declare const PROJECT_CONFIG_PARSE_ERROR_SUGGESTION = "Try upgrading the Supabase CLI to the latest version. If the error persists on the latest version, report it at https://github.com/supabase/cli/issues."; declare const ProjectConfigParseError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "ProjectConfigParseError"; } & Readonly; /** * A Management API v2 project-config response failed to map into a {@link ProjectConfig}. * Unmapped keys never trigger this on their own; a payload with an own `data` or `attributes` * key is treated as an envelope even when it was meant as bare attributes. */ export declare class ProjectConfigParseError extends ProjectConfigParseError_base<{ readonly message: string; /** * `"api_response"` (default) — the platform payload itself failed to decode or map. * `"caller_misuse"` — the caller passed this package's own API an invalid argument; the * upgrade suggestion does not apply and this should not be reported as a platform failure. */ readonly reason?: "api_response" | "caller_misuse"; /** * Path under v2 `data.attributes` of the offending value; `undefined` when * the response envelope/attributes shape itself failed to decode. */ readonly apiPath?: ReadonlyArray; readonly cause: unknown; /** Fuller, multi-issue detail beyond `message`'s single-issue summary. */ readonly detail?: string; readonly suggestion?: string; }> { } declare const CliProjectEnvParseError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "CliProjectEnvParseError"; } & Readonly; export declare class CliProjectEnvParseError extends CliProjectEnvParseError_base<{ readonly path: string; readonly line: number; }> { } declare const DuplicateRemoteProjectIdError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "DuplicateRemoteProjectIdError"; } & Readonly; /** Two `[remotes.*]` blocks declare the same `project_id` as the requested `projectRef`. */ export declare class DuplicateRemoteProjectIdError extends DuplicateRemoteProjectIdError_base<{ readonly message: string; }> { } declare const InvalidRemoteProjectIdError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "InvalidRemoteProjectIdError"; } & Readonly; /** A `[remotes.]` block's `project_id` is not a valid 20-lowercase-letter project ref. */ export declare class InvalidRemoteProjectIdError extends InvalidRemoteProjectIdError_base<{ readonly message: string; }> { } declare const CliConfigWriteError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "CliConfigWriteError"; } & Readonly; /** * Replacing a config document's on-disk text failed: the temp-file write, mode copy, or final * rename onto {@link path}. `cause` carries the underlying `PlatformError`. */ export declare class CliConfigWriteError extends CliConfigWriteError_base<{ readonly path: string; readonly cause: unknown; readonly message: string; }> { } export {}; //# sourceMappingURL=errors.d.ts.map