import { type IGrantedDataSource, type IGrantedWorkspace, type WorkspacePermissionSubject } from "../types.js";
export declare const usePermissions: (id: string, subjectType: WorkspacePermissionSubject, organizationId: string, onSuccess: () => void) => {
    grantedWorkspaces: IGrantedWorkspace[] | undefined;
    grantedDataSources: IGrantedDataSource[] | undefined;
    onWorkspacesChanged: (workspaces: IGrantedWorkspace[]) => void;
    onDataSourcesChanged: (dataSources: IGrantedDataSource[]) => void;
    removeGrantedWorkspace: (removedWorkspace: IGrantedWorkspace) => void;
    removeGrantedDataSource: (removedDataSource: IGrantedDataSource) => void;
    updateGrantedWorkspace: (workspace: IGrantedWorkspace) => void;
    updateGrantedDataSource: (dataSource: IGrantedDataSource) => void;
};
//# sourceMappingURL=usePermissions.d.ts.map