import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { OAuthApp, OAuthAppCreatedEnvelope, OAuthAppDeletedEnvelope, OAuthAppNonNullableFields, OAuthAppUpdatedEnvelope, OAuthAppsQueryBuilder, UpdateOAuthApp } from './headless-v1-o-auth-app-o-auth-apps.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createOAuthApp(httpClient: HttpClient): CreateOAuthAppSignature; interface CreateOAuthAppSignature { /** * Creates a new OAuth app for a Wix Headless client. * * * An OAuth app authorizes an external client app or site, on any platform, to authenticate with a Wix site or project and manage its data. * * > **Note:** The OAuth app secret is returned only when creating the OAuth app, and can't be retrieved later. Store the secret in a secure location. * @param - OAuth app to create. * @returns Created OAuth app info. */ (oAuthApp: OAuthApp): Promise; } export declare function getOAuthApp(httpClient: HttpClient): GetOAuthAppSignature; interface GetOAuthAppSignature { /** * Retrieves an OAuth app by ID. * @param - ID of the OAuth app to retrieve. * @returns Retrieved OAuth app info. */ (oAuthAppId: string): Promise; } export declare function updateOAuthApp(httpClient: HttpClient): UpdateOAuthAppSignature; interface UpdateOAuthAppSignature { /** * Updates an OAuth app. * * * Only fields provided in `mask` are updated. * * You can update the following fields: * + `name` * + `description` * + `allowedDomain` * + `loginUrl` * + `logoutUrl` * + `technology` * @param - ID of the OAuth app. * @param - Explicit list of fields to update. Only fields listed are updated. * @returns Updated OAuth app info. */ (_id: string | null, oAuthApp: UpdateOAuthApp, mask: string[]): Promise; } export declare function queryOAuthApps(httpClient: HttpClient): QueryOAuthAppsSignature; interface QueryOAuthAppsSignature { /** * Retrieves a list of OAuth apps, given the provided paging, filtering, and sorting. * * * Query OAuth Apps runs with these defaults, which you can override: * + Results are sorted by `id` in descending order. * + `paging.offset` is `0`. */ (): OAuthAppsQueryBuilder; } export declare const onOAuthAppCreated: EventDefinition; export declare const onOAuthAppDeleted: EventDefinition; export declare const onOAuthAppUpdated: EventDefinition; export { ActionEvent, Asset, BaseEventMetadata, CreateOAuthAppRequest, CreateOAuthAppResponse, CreateOAuthAppResponseNonNullableFields, CursorPaging, Cursors, DeleteContext, DeleteOAuthAppRequest, DeleteOAuthAppResponse, DeleteStatus, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GenerateOAuthAppSecretRequest, GenerateOAuthAppSecretResponse, GenerateOAuthAppSecretResponseNonNullableFields, GetOAuthAppRequest, GetOAuthAppResponse, GetOAuthAppResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, OAuthApp, OAuthAppCreatedEnvelope, OAuthAppDeletedEnvelope, OAuthAppNonNullableFields, OAuthAppType, OAuthAppUpdatedEnvelope, OAuthAppsQueryBuilder, OAuthAppsQueryResult, OAuthTechnologies, Paging, PagingMetadataV2, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryOAuthAppsRequest, QueryOAuthAppsResponse, QueryOAuthAppsResponseNonNullableFields, RestoreInfo, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SortOrder, Sorting, State, StudioAssigned, StudioUnassigned, UpdateOAuthApp, UpdateOAuthAppRequest, UpdateOAuthAppResponse, UpdateOAuthAppResponseNonNullableFields, WebhookIdentityType, } from './headless-v1-o-auth-app-o-auth-apps.universal.js';