/**
 * Local project-id guard for SDK methods that put a project id into a request
 * path (`/projects/v1/:project_id/...`).
 *
 * A project id is `prj_` followed by URL-safe characters: the hosted gateway
 * mints `prj_<milliseconds>_<slot>`, a self-hosted core runtime `prj_<hex>`.
 * Anything else (an empty value, a SQL string passed where the id belongs, a
 * name, a path) is refused here, before any request, with a code naming the
 * argument and a next action showing the call shape. A value that passes is
 * returned URL-encoded, ready to interpolate.
 */
/** Every project id format the platform mints, with room to spare. */
export declare const PROJECT_ID_PATTERN: RegExp;
/** True when `value` has the shape of a project id. */
export declare function isProjectId(value: unknown): value is string;
export interface ProjectIdCall {
    /** The SDK method, e.g. `"projects.sql"`. */
    method: string;
    /** The argument's name in that method's signature, e.g. `"id"`. */
    argument: string;
    /** The call shape shown in the next action, e.g. `r.projects.sql("prj_…", sql)`. */
    usage: string;
    /** Short verb phrase identifying the operation (the error's `context`). */
    context: string;
}
/**
 * Return `value` URL-encoded for a request path, or throw a `LocalError`
 * with code `BAD_PROJECT_ID` when it is not a project id.
 */
export declare function projectIdPathSegment(value: unknown, call: ProjectIdCall): string;
//# sourceMappingURL=project-id.d.ts.map