import type { SettingsPanelView, UserGrantOption, UserProfile } from "@edenapp/types"; import type { SettingsPanelRecord } from "./SettingsPanelRecord"; export declare const hasUserGrant: (user: UserProfile, grant: string) => boolean; export declare function canOpenPanel(record: SettingsPanelRecord, user: UserProfile, ancestors?: readonly SettingsPanelRecord[]): boolean; export declare const actionAuthorization: (record: SettingsPanelRecord, user: UserProfile) => { id: string; authorized: boolean; }[]; export declare function applyActionAuthorization(view: SettingsPanelView, access: ReadonlyMap): SettingsPanelView; export declare function collectPanelGrantOptions(records: Iterable): UserGrantOption[]; //# sourceMappingURL=SettingsPanelAuthorization.d.ts.map