/** The longest accepted account handle. The secret key limit is 120 * characters, and the longest name prefix a caller adds is `CODEX_HOME_` at * 11 characters, so 100 leaves headroom. */ export declare const ACCOUNT_HANDLE_MAX_LENGTH = 100; /** * Converts a raw account identifier into a safe account handle. Returns * `null` when the value cannot become one instead of throwing, so a caller * decides how to fail the operation. * * The identifier is the account's identity key: it names one directory and * one secret, so two distinct identifiers must never resolve to the same * handle. A caller must never normalize the value before this check (for * example, by trimming it) — normalizing first can alias a distinct * identifier onto an already-claimed handle and let a login accept a * different account's credential home as its own. * * An input becomes a handle only when every rule below is true: * * - It carries no leading or trailing whitespace. * - It matches `/^[a-zA-Z0-9_.-]+$/`. * - It is {@link ACCOUNT_HANDLE_MAX_LENGTH} characters or shorter. * - It is neither `.` nor `..`. * - It does not start with `-` (a leading `-` reads as a command-line option). */ export declare function toAccountHandle(rawAccountId: string): string | null; //# sourceMappingURL=account-handle.d.ts.map