import type { VercelBranchMetadataStore } from './metadata-store.js'; import { type VercelDisplayCredentials } from './metadata-schema.js'; export declare const DISPLAY_USERNAME: "devbox"; export declare const DISPLAY_CODE_LENGTH = 8; export declare const DISPLAY_CODE_PATTERN: RegExp; /** * A short pairing code, not a password. * * The display link carries this code and the proxy exchanges it for a cookie, * so it only has to survive being read aloud or typed once. 8 characters over a * 32-symbol alphabet is 40 bits, which at any plausible online guess rate is * out of reach, and the alphabet keeps it unambiguous. A 43-character base64url * secret is unusable in the pairing form, which is what it is for. */ export declare function generateDisplayPassword(): string; export interface DisplayCredentialsResolution { credentials: VercelDisplayCredentials; generated: boolean; } export declare class DisplayCredentialsNotFoundError extends Error { readonly code = "display_credentials_not_found"; constructor(); } export declare function getDisplayCredentials(store: VercelBranchMetadataStore): Promise; export declare function clearDisplayCredentialRotation(store: VercelBranchMetadataStore, credentials: VercelDisplayCredentials): Promise;