import { WebflowClient as FernClient } from "../Client"; import { OauthScope } from "../api/types/OAuthScope"; import { Client as Webhooks } from "./WebhooksClient"; import { Client as Assets } from "./AssetsClient"; import { Client as Collections } from "./CollectionsClient"; import { Client as Pages } from "./PagesClient"; import { Client as Forms } from "./FormsClient"; export declare class WebflowClient extends FernClient { protected readonly _options: FernClient.Options; constructor(_options: FernClient.Options); protected _webhooks: Webhooks | undefined; protected _assets: Assets | undefined; protected _collections: Collections | undefined; protected _pages: Pages | undefined; protected _forms: Forms | undefined; get webhooks(): Webhooks; get assets(): Assets; get collections(): Collections; get pages(): Pages; get forms(): Forms; /** * @param clientId The OAuth client ID * @param state The state * @param redirectUri The redirect URI * @param scope The OAuth scopes * @returns the URL to authorize a user */ static authorizeURL({ clientId, state, redirectUri, scope, }: { clientId: string; state?: string; redirectUri?: string; scope: OauthScope | OauthScope[]; }): string; /** * @param clientId The OAuth client ID * @param clientSecret The OAuth client secret * @param code The OAuth code * @param redirect_uri The redirect uri * @returns access token that can be used to hit our API */ static getAccessToken({ clientId, clientSecret, code, redirectUri, }: { clientId: string; clientSecret: string; code: string; redirectUri?: string; }): Promise; }