/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as WorkOS from "../../.."; export declare namespace Portal { interface Options { environment?: core.Supplier; authorizationToken?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } export declare class Portal { protected readonly _options: Portal.Options; constructor(_options?: Portal.Options); /** * Generate a Portal Link scoped to an Organization * @throws {@link WorkOS.BadRequestError} * @throws {@link WorkOS.ForbiddenError} * @throws {@link WorkOS.NotFoundError} * * @example * await workOs.portal.generateLink({ * organization: "string" * }) */ generateLink(request: WorkOS.GenerateLinkOpts, requestOptions?: Portal.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }