export type ProjectBranchEmailMode = "sandbox" | "off";
export interface ProjectBranchNextAction {
    type: string;
    command?: string;
    message: string;
    [key: string]: unknown;
}
export interface ProjectBranchDto {
    branch_project_id: string;
    parent_project_id: string;
    name: string;
    branch_url: string | null;
    subdomain: string | null;
    status: "active" | (string & {});
    email_mode: ProjectBranchEmailMode | (string & {});
    enable_cron: boolean;
    data_from: {
        snapshot_id: string | null;
        captured_at: string | null;
    };
    release: {
        parent_release_id: string | null;
        branch_release_id: string | null;
    };
    expires_at: string;
    created_at: string;
    /** What the branch has of its parent. Absent from a gateway that predates it. */
    carries?: ProjectBranchCarries;
    next_actions: ProjectBranchNextAction[];
}
/** The parent's names a branch has (`present`) and lacks (`missing`). */
export interface ProjectBranchCarriedNames {
    present: string[];
    missing: string[];
}
/**
 * What a branch has of its parent, read when the branch is answered. Names
 * only, never a value: secret keys, app repo names, mailbox local parts.
 */
export interface ProjectBranchCarries {
    secrets: ProjectBranchCarriedNames;
    app_repos: ProjectBranchCarriedNames;
    mailboxes: ProjectBranchCarriedNames;
    /** Users on the branch, test users not counted. */
    users: number;
    scheduled_functions: "paused" | "enabled" | (string & {});
}
export interface ProjectBranchCreateOptions {
    fromSnapshotId?: string;
    name?: string;
    emailMode?: ProjectBranchEmailMode;
    enableCron?: boolean;
    /**
     * Give the branch the project's secrets: `true` for all of them, or the key
     * names. Default none, so a branch's functions reach no third party unless
     * asked. On `reuse`, a secret the branch already has is left as it is.
     */
    copySecrets?: true | string[];
    ttlDays?: number;
    /**
     * With `name`: answer the active branch of that name when there is one
     * (renewed when it expires within a day, no new capture), and create it
     * otherwise. The result says which in `reused`, and carries the keys either way.
     */
    reuse?: boolean;
}
export interface ProjectBranchCreateResult extends ProjectBranchDto {
    /** Present when `reuse` was asked: true for a branch that already existed. */
    reused?: boolean;
    operation_id: string;
    materialization_id: string;
    anon_key: string;
    service_key: string;
}
export interface ProjectBranchesListResult {
    branches: ProjectBranchDto[];
}
export interface ProjectBranchRenewOptions {
    ttlDays?: number;
}
//# sourceMappingURL=branches.types.d.ts.map