import { WorkOSAdminPortal } from '@mastra/auth-workos'; import type { ApiRoute } from '@mastra/core/server'; import type { AuditEventRow } from '../../storage/domains/audit/base.js'; import type { FactoryIntegration, IntegrationContext } from '../base.js'; type WorkOSClient = ConstructorParameters[0]; export declare function toWorkOSEvent(event: AuditEventRow): { action: string; occurredAt: Date; actor: { type: string; id: string; }; targets: Array<{ type: string; id: string; name?: string; }>; context: { location: string; userAgent?: string; }; metadata: Record; }; /** Optional WorkOS mirror and Admin Portal route, independent of the auth adapter. */ export declare class WorkOSAuditIntegration implements FactoryIntegration { #private; readonly id = "workos"; constructor({ client, returnUrl }: { client: WorkOSClient; returnUrl: string; }); audit({ event }: { event: AuditEventRow; }): Promise; routes(ctx: IntegrationContext): ApiRoute[]; diagnostics(): Record; } export {}; //# sourceMappingURL=integration.d.ts.map