export interface FolderDoc { id: string; type: 'folder' | string; name: string; parentId?: string | null; path?: string; scope: string; teamId?: string | null; ownerId?: string | null; } export interface ScopeKey { scope: string; teamId?: string | null | undefined; ownerId?: string | null | undefined; } export interface FolderChainCreate { tempId: string; doc: { type: 'folder'; name: string; parentId: string | null; path: string; scope: string; teamId: string | null; ownerId: string | null; sharedWith: string[]; }; } export interface FolderChainBackfill { id: string; path: string; } export interface FolderChainPlan { creates: FolderChainCreate[]; backfills: FolderChainBackfill[]; leafId: string | null; } export interface PlanFolderChainInput extends ScopeKey { existingFolders: FolderDoc[] | null | undefined; segments: string[] | null | undefined; } export declare function splitPath(p: string | null | undefined): string[]; export declare function planFolderChain({ existingFolders, segments, scope, teamId, ownerId, }: PlanFolderChainInput): FolderChainPlan; //# sourceMappingURL=folder-chain.d.ts.map