import { Command } from "commander";
export declare function validateTenantName(name: string): boolean;
export declare function deriveEnvFromStack(stack: string): string | null;
export interface TenantAddSpec {
    name: string;
    displayName?: string;
    subdomain: string;
    zitadelOrgId?: string;
}
export type TenantAddResult = {
    ok: true;
    yaml: string;
    createdTenantsBlock: boolean;
} | {
    ok: false;
    reason: "exists" | "no-config";
    detail: string;
};
export declare function addTenantToStackConfig(yamlText: string, spec: TenantAddSpec): TenantAddResult;
export declare function listTenantsInStackConfig(yamlText: string): Array<{
    name: string;
    displayName?: string;
    subdomain?: string;
}>;
export declare function registerTenantCommands(program: Command): void;
