import type { P1Client, RolePermissions } from '@pantheon-systems/css-client'; export interface MainBranchPermissionsResult { permissions: RolePermissions | null; /** True once the role fetch has failed; distinguishes "errored" from "still checking". */ error: boolean; } /** * Going live is asserted against the main branch, while the editor's * `permissions` are for the current one; this resolves the main-side role. */ export declare function useMainBranchPermissions(client: P1Client, siteId: string, mainBranchId: string | null): MainBranchPermissionsResult;