import type { CompanyClient } from './company.js';
/** The scope a signed-in browser join needs (section 6). Request it only where `browserSessionEndpoint` exists. */
export declare const BROWSER_SIGN_IN_SCOPE = "poppy:browser-sign-in";
/**
 * `web.disabled`: the Company asks Personal Agents not to browse its website in a browser, and to use
 * its Company Agent and APIs (section 6). Pages fetched without a browser aren't covered.
 */
export declare function browsingDisabled(company: CompanyClient): boolean;
/** Where the Personal Agent's browser joins a Session (section 6), or an error without one. */
export declare function browserSessionEndpoint(company: CompanyClient): string;
/**
 * Step 2: reads the one-time code from the HTML of the page the agent's OWN browser loaded in step
 * 1 (section 6). Pass it nothing else: a code from anywhere else may come from someone else's
 * browser, which would then join the User's Session (10.6). Keep the code out of model context.
 */
export declare function browserJoinCode(html: string): string;
/**
 * Step 2: authorizes the code with the Session header and, if signed in, the access token, which
 * never reaches the browser. A token without `poppy:browser-sign-in` is refused with
 * `insufficient_scope`: the same code is then authorized signed out (section 6). Answers whether the
 * join is signed in. The agent's browser then submits the form (step 3); after a failure, start
 * again at step 1.
 */
export declare function authorizeBrowserJoin(company: CompanyClient, code: string, opts?: {
    signedOut?: boolean | undefined;
}): Promise<{
    signedIn: boolean;
}>;
//# sourceMappingURL=browser.d.ts.map