export type EditorAccessResult = { status: "allowed"; } | { status: "unauthenticated"; } | { status: "forbidden"; }; export interface VerifyEditorAccessOptions { /** Bearer token presented by the caller, without the `Bearer ` prefix. */ token: string; /** Base URL of the API. Defaults to the production API. */ p1BaseUrl?: string; /** Site the caller is trying to modify. */ siteId?: string; /** Branch to check the caller's role on. Defaults to the site's main branch. */ branchId?: string; } /** * Checks that the bearer token belongs to a caller who may edit documents on the * site. A caller the API refuses, a caller without edit permission, or a site * with no main branch to check against is `forbidden`; a missing token or site, * or any other failure to verify, is reported as `unauthenticated`. */ export declare function verifyEditorAccess(opts: VerifyEditorAccessOptions): Promise;