import { KeystonePoolConfig, KeystoneFrameDetails } from "../keystone-types.mjs"; import { KeystonePoolTemplate, KeystonePolicyConfigTemplate, KeystoneBehaviorProfileTemplate } from "../keystone-policy-types.mjs"; export type KeystoneProfileName = 'primary-profile.dev' | 'primary-profile.staging' | 'primary-profile.prod' | 'sync-profile.dev' | 'sync-profile.staging' | 'sync-profile.prod' | 'sync-profile.test-short-ttl' | 'author-profile.dev' | 'author-profile.staging' | 'author-profile.prod' | 'admin-profile.dev' | 'admin-profile.staging' | 'admin-profile.prod' | 'session' | (string & {}); export declare class KeystoneProfileBuilder { private _template; private _username?; private _emails?; private _description?; private _details?; private _customizations; private constructor(); /** * Registers a custom keystone policy config template in memory. * Accessible by name via `KeystoneProfileBuilder.buildKeystone(name)`. */ static registerCustomProfile({ name, template, }: { name: string; template: KeystonePolicyConfigTemplate; }): void; /** * Clears all dynamically registered custom profiles. */ static clearCustomProfiles(): void; /** * Directly creates a builder instance from any valid `KeystonePolicyConfigTemplate`. */ static fromTemplate(template: KeystonePolicyConfigTemplate): KeystoneProfileBuilder; static buildKeystone(profileName: KeystoneProfileName | string): KeystoneProfileBuilder; withUsername(username: string): this; withEmail(email: string): this; withEmails(emails: string[]): this; withDescription(description: string): this; withDetails(details: any): this; private _expirationUTC?; withExpiration(expirationUTC?: string): this; /** * Gets the default TTL in seconds defined in the profile metadata if present. */ getDefaultTtlSeconds(): number | undefined; customizePool(poolId: string, overrides: Omit, 'behavior'> & { behavior?: Partial; }): this; withPool(poolId: string, poolTemplate: KeystonePoolTemplate): this; /** * Unifies username, emails, description, details, and expiration into a frameDetails object for genesis. */ getFrameDetails(): KeystoneFrameDetails; compileConfigs(): Promise; } //# sourceMappingURL=keystone-profile-builder.d.mts.map