import { z } from 'zod'; import type { KwsConfig, ServerConfig } from '../../config.js'; import type { AppContext } from '../../context.js'; import type { KwsClient } from '../../kws.js'; export type AppContextWithKwsClient = AppContext & { kwsClient: KwsClient; cfg: ServerConfig & { kws: KwsConfig; }; }; export type KwsExternalPayload = { actorDid: string; attemptId: string; }; export declare const externalPayloadSchema: z.ZodObject<{ actorDid: z.ZodString; attemptId: z.ZodString; }, "strict", z.ZodTypeAny, { actorDid: string; attemptId: string; }, { actorDid: string; attemptId: string; }>; export type KwsStatus = { verified: boolean; transactionId?: string; errorCode?: string | null; timestamp?: number; }; export type KwsVerificationIntermediateQuery = { externalPayload: string; status: string; signature: string; }; export declare const verificationIntermediateQuerySchema: z.ZodObject<{ externalPayload: z.ZodString; signature: z.ZodString; status: z.ZodString; }, "strip", z.ZodTypeAny, { externalPayload: string; signature: string; status: string; }, { externalPayload: string; signature: string; status: string; }>; export type KwsVerificationQuery = { externalPayload: KwsExternalPayload; signature: string; status: KwsStatus; }; export type KwsWebhookBody = { payload: { externalPayload: KwsExternalPayload; status: KwsStatus; }; }; export declare const statusSchema: z.ZodObject<{ verified: z.ZodBoolean; transactionId: z.ZodOptional; errorCode: z.ZodOptional>; timestamp: z.ZodOptional; }, "strip", z.ZodTypeAny, { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }, { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }>; export declare const webhookBodyIntermediateSchema: z.ZodObject<{ payload: z.ZodObject<{ externalPayload: z.ZodString; status: z.ZodObject<{ verified: z.ZodBoolean; transactionId: z.ZodOptional; errorCode: z.ZodOptional>; timestamp: z.ZodOptional; }, "strip", z.ZodTypeAny, { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }, { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }>; }, "strip", z.ZodTypeAny, { externalPayload: string; status: { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }, { externalPayload: string; status: { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }>; }, "strip", z.ZodTypeAny, { payload: { externalPayload: string; status: { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }; }, { payload: { externalPayload: string; status: { verified: boolean; transactionId?: string | undefined; errorCode?: string | null | undefined; timestamp?: number | undefined; }; }; }>; //# sourceMappingURL=types.d.ts.map