/** * Persistent stores for the ADO plugin. * * Four stores at ~/.azure-devops-cli/: * - active-profile — currently active profile name * - selected-pr — currently selected PR (format: repo:prId) * - selected-wi — currently selected WI (format: profileName:wiId) * - sidebar-view — current sidebar view mode (prs | wis | qa) * * All operations are synchronous and defensive — they never throw. */ /** Return the file path used for the active profile store. */ export declare function getActiveProfilePath(): string; /** * Read the active profile name from disk. * Returns null if the file is missing, empty, or unreadable (never throws). */ export declare function getActiveProfile(): string | null; /** * Persist the active profile name to disk. * Creates the store directory if it doesn't exist. */ export declare function setActiveProfile(name: string): void; /** Delete the active profile file from disk. Silently ignores errors. */ export declare function clearActiveProfile(): void; /** * Read the selected PR from disk. * Returns null if the file is missing, empty, or unreadable (never throws). */ export declare function getSelectedPr(): { repo: string; prId: number; } | null; /** * Persist the selected PR to disk. * Creates the store directory if it doesn't exist. */ export declare function setSelectedPr(repo: string, prId: number): void; /** Clear the selected PR file. Silently ignores errors. */ export declare function clearSelectedPr(): void; /** * Read the selected WI from disk. * Returns null if the file is missing, empty, or unreadable (never throws). */ export declare function getSelectedWi(): { profileName: string; wiId: number; } | null; /** * Persist the selected WI to disk. * Creates the store directory if it doesn't exist. */ export declare function setSelectedWi(profileName: string, wiId: number): void; /** Clear the selected WI file. Silently ignores errors. */ export declare function clearSelectedWi(): void; /** * Read the sidebar view mode from disk. * Returns "prs" if the file is missing, empty, or unreadable (never throws). */ export declare function getViewMode(): "prs" | "wis" | "qa"; /** * Persist the sidebar view mode to disk. * Creates the store directory if it doesn't exist. */ export declare function setViewMode(view: "prs" | "wis" | "qa"): void; /** * Read collapsed states from disk. * Returns empty object if the file is missing, empty, or unreadable (never throws). */ export declare function getCollapsedStates(): Record; /** * Persist collapsed states to disk. * Creates the store directory if it doesn't exist. */ export declare function setCollapsedStates(states: Record): void; //# sourceMappingURL=profile-store.d.ts.map