/** * Branch token storage in ~/.tinybird/branches.json */ /** * Information about a cached branch */ export interface BranchInfo { /** Branch ID from Tinybird */ id: string; /** Branch token for API access */ token: string; /** When the branch was created/cached */ createdAt: string; } /** * Structure of the branches.json file */ export interface BranchStore { workspaces: Record; }>; } /** * Get the path to the branches.json file */ export declare function getBranchStorePath(): string; /** * Load the branch store from disk * Returns an empty store if the file doesn't exist */ export declare function loadBranchStore(): BranchStore; /** * Save the branch store to disk */ export declare function saveBranchStore(store: BranchStore): void; /** * Get a cached branch token * Returns null if not cached */ export declare function getBranchToken(workspaceId: string, branchName: string): BranchInfo | null; /** * Cache a branch token */ export declare function setBranchToken(workspaceId: string, branchName: string, info: BranchInfo): void; /** * Remove a cached branch */ export declare function removeBranch(workspaceId: string, branchName: string): void; /** * List all cached branches for a workspace */ export declare function listCachedBranches(workspaceId: string): Record; //# sourceMappingURL=branch-store.d.ts.map