import { TransactionRunner, type OperationContext } from '@n8n/db'; import { DataSource } from '@n8n/typeorm'; import { z } from 'zod'; export declare const SCIM_TOKEN_SETTINGS_KEY = "scim.provisioning.token"; declare const storedTokenSchema: z.ZodObject<{ tokenHash: z.ZodString; tokenHint: z.ZodString; createdById: z.ZodString; createdAt: z.ZodEffects; }, "strip", z.ZodTypeAny, { tokenHash: string; tokenHint: string; createdById: string; createdAt: Date; }, { tokenHash: string; tokenHint: string; createdById: string; createdAt: string; }>; export type StoredScimToken = z.infer; export type NewScimToken = StoredScimToken; export declare class ScimTokenRepository { private readonly table; constructor(dataSource: DataSource, transactionRunner: TransactionRunner); findInstanceToken(ctx: OperationContext): Promise; replace(expectedTokenHash: string | null, token: NewScimToken, ctx: OperationContext): Promise; revokeInstanceToken(ctx: OperationContext): Promise; private lockState; private write; } export {};