/**
 * Account context policy helpers.
 *
 * Controls whether account instances keep project context isolated, or share
 * project workspace context with other accounts in the same context group.
 */
export type AccountContextMode = 'isolated' | 'shared';
export type AccountContinuityMode = 'standard' | 'deeper';
export interface AccountContextMetadata {
    context_mode?: AccountContextMode;
    context_group?: string;
    continuity_mode?: AccountContinuityMode;
}
export interface AccountContextPolicy {
    mode: AccountContextMode;
    group?: string;
    continuityMode?: AccountContinuityMode;
}
export interface CreateAccountContextInput {
    shareContext: boolean;
    contextGroup?: string;
    deeperContinuity?: boolean;
}
export interface ResolvedCreateAccountContext {
    policy: AccountContextPolicy;
    error?: string;
}
export declare const DEFAULT_ACCOUNT_CONTEXT_MODE: AccountContextMode;
export declare const DEFAULT_ACCOUNT_CONTEXT_GROUP = "default";
export declare const DEFAULT_ACCOUNT_CONTINUITY_MODE: AccountContinuityMode;
export declare const MAX_CONTEXT_GROUP_LENGTH = 64;
export declare const ACCOUNT_PROFILE_NAME_PATTERN: RegExp;
/**
 * Normalize context group names so paths and config stay consistent.
 */
export declare function normalizeContextGroupName(value: string): string;
/**
 * Validate context group naming constraints.
 */
export declare function isValidContextGroupName(value: string): boolean;
/**
 * Validate account profile naming constraints.
 */
export declare function isValidAccountProfileName(value: string): boolean;
/**
 * Runtime type guard for account context metadata payloads.
 */
export declare function isAccountContextMetadata(value: unknown): value is AccountContextMetadata;
/**
 * Resolve create-command flags into a valid context policy.
 */
export declare function resolveCreateAccountContext(input: CreateAccountContextInput): ResolvedCreateAccountContext;
/**
 * Resolve persisted metadata into runtime policy with safe defaults.
 */
export declare function resolveAccountContextPolicy(metadata?: AccountContextMetadata | null): AccountContextPolicy;
/**
 * Convert runtime policy back to persisted metadata.
 */
export declare function policyToAccountContextMetadata(policy: AccountContextPolicy): AccountContextMetadata;
/**
 * User-facing summary for display/help output.
 */
export declare function formatAccountContextPolicy(policy: AccountContextPolicy): string;
//# sourceMappingURL=account-context.d.ts.map