import { t as IRestApiContext } from "../types2.mjs"; import { ConsentUiHints } from "@n8n/api-types"; //#region src/api/consent.d.ts interface ConsentDetailsPicker { clientName: string; clientId: string; redirectUri?: string; resourceName?: string; scopes: string[]; previousScopes?: string[]; scopeTools?: Record; uiHints?: ConsentUiHints; isFirstParty?: boolean; } type ConsentDetails = { autoApproved: true; redirectUrl: string; uiHints?: ConsentUiHints; } | ({ autoApproved?: false; } & ConsentDetailsPicker); interface ConsentApprovalResponse { status: string; redirectUrl: string; } declare function getConsentDetails(context: IRestApiContext): Promise; declare function approveConsent(context: IRestApiContext, approved: boolean, scopes?: string[]): Promise; //#endregion export { ConsentApprovalResponse, ConsentDetails, ConsentDetailsPicker, approveConsent, getConsentDetails }; //# sourceMappingURL=consent.d.mts.map