/** * Registry credential shapes and pure credential helpers. * CLI-free home so core modules can consume them without importing src/cli/. */ /** * Registry authentication credentials * Supports both legacy password auth and new refresh token auth. * If `apiToken` is set, the orgId is parsed from the token itself (see `extractOrgIdFromApiToken`). */ export type RegistryAuth = { username: string | null; registryUrl: string; refreshToken?: string | null; idToken?: string | null; idTokenExpiresAt?: number | null; apiToken?: string | null; }; /** * Authentication credentials - supports legacy password, refresh token, and API token auth. * API tokens are self-describing: the orgId is embedded in the token format `nori__<64hex>`. */ export type AuthCredentials = { username?: string | null; organizationUrl: string; refreshToken?: string | null; idToken?: string | null; idTokenExpiresAt?: number | null; password?: string | null; apiToken?: string | null; organizations?: Array | null; isAdmin?: boolean | null; }; export declare const hasUnexpiredRegistryIdToken: (args: { auth?: AuthCredentials | null; now?: number | null; }) => boolean; export declare const hasRegistryAuthCredentials: (args: { auth?: AuthCredentials | null; now?: number | null; }) => boolean; export declare const toRegistryAuth: (args: { auth: AuthCredentials; registryUrl: string; }) => RegistryAuth; //# sourceMappingURL=authCredentials.d.ts.map