import { Privilege, PrivilegeDefinition } from '@bringg/types';
export declare const privilegeExtractor: (response: PrivilegeResponse) => Privilege[];
export type PrivilegeResponse = {
    count: number;
    privileges: Privilege[];
};
/**
 * Response shape from GET /privileges/get_list.
 */
export interface PrivilegeGetListResponse {
    success: boolean;
    privileges: Record<string, PrivilegeDefinition>;
}
export interface AddPrivilegePayload {
    name: string;
    authorization_flags: Record<string, {
        title: string;
        [key: string]: unknown;
    }>;
}
export type CreatePrivilegeResponse = {
    success: boolean;
    privilege: Privilege;
};
