/** * Label Service Headless Pool * Using the unified headless pool system from @things-factory/shell */ type LabelJob = { subdomain?: string; token?: string; }; /** * The headers a sub-request goes with: the job's user and domain, for a request to this server while a job runs; * nothing for any other host, or between jobs. */ export declare function labelRequestHeaders(requestUrl: string, origin: string, job: LabelJob | undefined, existing: Record): Record | undefined; /** Runs one label job on a page as the requesting user in their domain; the page forgets them when it is done. */ export declare function forLabelJob(page: object, who: { domain?: { subdomain?: string; }; user?: { sign?: () => Promise | string; }; }, work: () => Promise): Promise; export declare function setupLabelPage(browser: any): Promise<{ browser: any; page: any; }>; /** * Get the label headless pool * @returns Pool instance with acquire/release methods */ export declare function getHeadlessPool(): { acquire: () => Promise; release: (resource: any) => Promise; size: number; available: number; borrowed: number; pending: number; max: number; min: number; clear: () => Promise; }; export {};