export interface Credentials {
    token: string;
    refreshToken?: string;
    user: {
        id: string;
        email: string;
        firstName: string | null;
        lastName: string | null;
    };
    organizationId: string;
    currentOrgId?: string;
}
export declare function saveCredentials(creds: Credentials): Promise<void>;
export declare function loadCredentials(): Promise<Credentials | null>;
export declare function clearCredentials(): Promise<void>;
export declare function getCurrentOrgId(): Promise<string | null>;
export declare function setCurrentOrgId(orgId: string): Promise<void>;
export declare function verifyToken(token: string): Promise<boolean>;
export declare function tryRefreshToken(creds: Credentials): Promise<string | null>;
export declare function login(): Promise<Credentials>;
export declare function getToken(): Promise<string>;
/**
 * Validate that the user has access to the specified organization.
 * Throws if the org is not in the user's org list.
 */
export declare function validateOrgAccess(token: string, orgId: string): Promise<void>;
//# sourceMappingURL=credentials.d.ts.map