import { TodoistApi } from '@doist/todoist-sdk'; export type ResolvedWorkspace = { workspaceId: string; workspaceName: string; }; /** * Check if a string looks like a workspace ID (purely numeric). */ export declare function looksLikeWorkspaceId(ref: string): boolean; export declare class WorkspaceResolver { private cache; private inFlightWorkspaces; private getWorkspaces; /** * Resolve a workspace name or ID to a workspace ID and name. * * Resolution order: * 1. Exact ID match (always tried first for any input) * 2. If input looks like an ID (numeric) but wasn't found, pass through as-is (API validates) * 3. Exact case-insensitive name match * 4. Unique partial case-insensitive name match * 5. Multiple partial matches → throw ambiguous error * 6. No match → throw not-found error */ resolveWorkspace(client: TodoistApi, nameOrId: string): Promise; /** * Clear the workspace cache — useful for testing. */ clearCache(): void; } export declare const workspaceResolver: WorkspaceResolver; //# sourceMappingURL=workspace-resolver.d.ts.map