export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ event: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ reindex: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ trigger: import("@trpc/server").TRPCMutationProcedure<{ input: { waitForCompletion?: boolean | undefined; } | undefined; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; status: import("@trpc/server").TRPCQueryProcedure<{ input: { limit?: number | undefined; } | undefined; output: { id: string; timestamp: string; status: "failed" | "running" | "completed"; progress: { processed: number; }; error_message: string | null; completed_at: string | null; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; config: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ get: import("@trpc/server").TRPCQueryProcedure<{ input: void; output: import("../commons").EventConfig[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; create: import("@trpc/server").TRPCMutationProcedure<{ input: { transactionId: string; type: string; createdAtLocation?: string | null | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; get: import("@trpc/server").TRPCQueryProcedure<{ input: { eventId: string; customActionType?: string | undefined; waitFor?: boolean | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; getDuplicates: import("@trpc/server").TRPCQueryProcedure<{ input: { eventId: string; customActionType?: string | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; delete: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; }; output: { id: string & import("zod").$brand<"UUID">; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; draft: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ list: import("@trpc/server").TRPCQueryProcedure<{ input: void; output: { id: string & import("zod").$brand<"UUID">; eventId: string & import("zod").$brand<"UUID">; transactionId: string; createdAt: string; action: { type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM"; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; create: import("@trpc/server").TRPCMutationProcedure<{ input: { transactionId: string; eventId: string; type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM"; status: "Requested" | "Accepted" | "Rejected"; createdAtLocation?: string | null | undefined; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; }; output: { id: string & import("zod").$brand<"UUID">; eventId: string & import("zod").$brand<"UUID">; transactionId: string; createdAt: string; action: { type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM"; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; actions: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ notify: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; createAndNotify: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: { transactionId: string; eventType: string; createdAtLocation: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; declare: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; edit: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; reject: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; archive: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; register: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; printCertificate: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; custom: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; assignment: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ assign: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; unassign: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; correction: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; approve: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; reject: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ request: import("@trpc/server").TRPCMutationProcedure<{ input: import("../commons").ActionInput; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; accept: import("@trpc/server").TRPCMutationProcedure<{ input: (Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "CREATE" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REGISTER" | undefined; registrationNumber?: string | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; type?: "NOTIFY" | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DECLARE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { duplicates: { id: string; trackingId: string; }[]; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "DUPLICATE_DETECTED" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "ARCHIVE" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; type: "ASSIGN"; assignedTo: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "UNASSIGN" | undefined; assignedTo?: null | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "PRINT_CERTIFICATE" | undefined; content?: { templateId?: string | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REQUEST_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; content: { reason: string; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "REJECT_CORRECTION" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; requestId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "APPROVE_CORRECTION" | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "READ" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; customActionType: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "CUSTOM" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{ eventId: string; transactionId: string; content: { comment?: string | undefined; }; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "EDIT" | undefined; }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & { actionId: string; }; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; reject: import("@trpc/server").TRPCMutationProcedure<{ input: import("zod").input; keepAssignment: import("zod").ZodOptional; waitFor: import("zod").ZodDefault; actionId: import("zod/v4/core").$ZodBranded; }, import("zod/v4/core").$strip>>; output: import("../commons").EventDocument; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; }>>; duplicate: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ markAsDuplicate: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_DUPLICATE" | undefined; content?: { duplicateOf: string; } | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; markNotDuplicate: import("@trpc/server").TRPCMutationProcedure<{ input: { eventId: string; transactionId: string; declaration?: Record | undefined; annotation?: Record | undefined; originalActionId?: string | undefined; keepAssignment?: boolean | undefined; keepAssignmentIfAccepted?: boolean | undefined; keepAssignmentIfRejected?: boolean | undefined; waitFor?: boolean | undefined; createdAtLocation?: string | null | undefined; type?: "MARK_AS_NOT_DUPLICATE" | undefined; }; output: { id: string & import("zod").$brand<"UUID">; type: string; createdAt: string; updatedAt: string; actions: ({ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { duplicateOf: string & import("zod").$brand<"UUID">; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; registrationNumber?: string | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; })[]; trackingId: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; }>>; search: import("@trpc/server").TRPCQueryProcedure<{ input: { query: unknown; limit?: number | undefined; offset?: number | undefined; sort?: unknown; }; output: { results: { id: string & import("zod").$brand<"UUID">; type: string; status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED"; legalStatuses: { DECLARED?: { createdAt: string; createdBy: string; acceptedAt: string; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; createdByUserType?: "system" | "user" | null | undefined; createdByRole?: string | undefined; } | null | undefined; REGISTERED?: { createdAt: string; createdBy: string; acceptedAt: string; registrationNumber: string; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; createdByUserType?: "system" | "user" | null | undefined; createdByRole?: string | undefined; } | null | undefined; }; createdAt: string; createdBy: string; updatedAt: string; trackingId: string; potentialDuplicates: { id: string & import("zod").$brand<"UUID">; trackingId: string; }[]; flags: string[]; declaration: Record; dateOfEvent?: string | null | undefined; placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined; createdByUserType?: "system" | "user" | null | undefined; updatedByUserRole?: string | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; assignedTo?: string | null | undefined; updatedBy?: string | null | undefined; }[]; total: number; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; bulkImport: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; type: string; createdAt: string; updatedAt: string; actions: ({ id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CREATE"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DUPLICATE_DETECTED"; content: { duplicates: { id: string; trackingId: string; }[]; }; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_NOT_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "MARK_AS_DUPLICATE"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; content?: { duplicateOf: string; } | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ARCHIVE"; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "NOTIFY"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REGISTER"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; registrationNumber?: string | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "DECLARE"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "ASSIGN"; assignedTo: string; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REQUEST_CORRECTION"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "APPROVE_CORRECTION"; requestId: string; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; content?: { immediateCorrection?: boolean | undefined; } | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "REJECT_CORRECTION"; requestId: string; content: { reason: string; }; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "UNASSIGN"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "PRINT_CERTIFICATE"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; content?: { templateId?: string | undefined; } | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "READ"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "EDIT"; content: { comment?: string | undefined; }; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; type: "CUSTOM"; customActionType: string; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; annotation?: Record | null | undefined; originalActionId?: string | null | undefined; } | { id: string; transactionId: string; createdByUserType: "system" | "user"; createdAt: string; createdBy: string; type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM"; status: "Rejected"; createdByRole?: string | undefined; createdBySignature?: string | null | undefined; createdAtLocation?: string | null | undefined; originalActionId?: string | null | undefined; })[]; trackingId: string; }[]; output: any; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; user: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ get: import("@trpc/server").TRPCQueryProcedure<{ input: string; output: { id: string & import("zod").$brand<"UUID">; name: { firstname: string; surname: string; }; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; type: "user"; status: "active" | "pending" | "deactivated"; avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; device?: string | undefined; fullHonorificName?: string | undefined; mobile?: string | undefined; email?: string | undefined; data?: Record | undefined; } | { id: string & import("zod").$brand<"UUID">; name: string; type: "system"; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; signature?: undefined; avatar?: undefined; fullHonorificName?: string | undefined; legacyId?: string | undefined; status?: undefined; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; create: import("@trpc/server").TRPCMutationProcedure<{ input: { name: { firstname: string; surname: string; }; role: string; primaryOfficeId: string; data?: Record | undefined; fullHonorificName?: string | undefined; device?: string | undefined; email?: string | undefined; mobile?: string | undefined; username?: undefined; password?: undefined; signature?: { path: string; originalFilename: string; type: string; } | undefined; }; output: { id: string & import("zod").$brand<"UUID">; name: { firstname: string; surname: string; }; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; type: "user"; status: "active" | "pending" | "deactivated"; avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; device?: string | undefined; fullHonorificName?: string | undefined; mobile?: string | undefined; email?: string | undefined; data?: Record | undefined; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; update: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; data?: Record | undefined; name?: { firstname: string; surname: string; } | undefined; role?: string | undefined; fullHonorificName?: string | undefined; device?: string | undefined; primaryOfficeId?: string | undefined; email?: string | undefined; mobile?: string | undefined; signature?: { path: string; originalFilename: string; type: string; } | undefined; status?: "active" | "deactivated" | undefined; }; output: { id: string & import("zod").$brand<"UUID">; name: { firstname: string; surname: string; }; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; type: "user"; status: "active" | "pending" | "deactivated"; avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; device?: string | undefined; fullHonorificName?: string | undefined; mobile?: string | undefined; email?: string | undefined; data?: Record | undefined; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; list: import("@trpc/server").TRPCQueryProcedure<{ input: string[]; output: ({ id: string & import("zod").$brand<"UUID">; type: "user"; name: { firstname: string; surname: string; }; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; fullHonorificName?: string | undefined; avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "system"; name: string; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; })[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; search: import("@trpc/server").TRPCQueryProcedure<{ input: { count: number; skip: number; sortOrder: "desc" | "asc"; username?: string | undefined; mobile?: string | undefined; email?: string | undefined; status?: string | undefined; primaryOfficeId?: string | undefined; sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined; }; output: ({ id: string & import("zod").$brand<"UUID">; type: "user"; name: { firstname: string; surname: string; }; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; status: "active" | "pending" | "deactivated"; fullHonorificName?: string | undefined; avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "system"; name: string; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; status?: "active" | "pending" | "deactivated" | undefined; })[]; meta: object; }>; actions: import("@trpc/server").TRPCQueryProcedure<{ input: { userId: string; skip?: number | undefined; count?: number | undefined; timeStart?: string | undefined; timeEnd?: string | undefined; actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined; }; output: { results: { id: (string & import("zod").$brand<"UUID">) | null; createdBy: string; createdAt: string | null; status: import("../storage/postgres/events/schema/app/ActionStatus").default; transactionId: string | null; eventId: string & import("zod").$brand<"UUID">; actionType: string; declaration: Record; annotation: Record | null; createdByRole: string | null; createdByUserType: import("../storage/postgres/events/schema/app/UserType").default; createdBySignature: string | null; createdAtLocation: (string & import("zod").$brand<"UUID">) | null; updatedAt: string | null; assignedTo: string | null; originalActionId: (string & import("zod").$brand<"UUID">) | null; registrationNumber: string | null; requestId: string | null; content: Record | null; customActionType: string | null; eventType: string | null; trackingId: string | null; }[]; total: number; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; roles: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ list: import("@trpc/server").TRPCQueryProcedure<{ input: void; output: { id: string; scopes: (string & import("zod").$brand<"EncodedScope">)[]; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; changePassword: import("@trpc/server").TRPCMutationProcedure<{ input: { existingPassword: string; password: string; }; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; requestEmailChange: import("@trpc/server").TRPCMutationProcedure<{ input: { email: string; }; output: { nonce: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; requestPhoneChange: import("@trpc/server").TRPCMutationProcedure<{ input: { phoneNumber: string; }; output: { nonce: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; changePhone: import("@trpc/server").TRPCMutationProcedure<{ input: { userId: string; phoneNumber: string; nonce: string; verifyCode: string; }; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; changeEmail: import("@trpc/server").TRPCMutationProcedure<{ input: { userId: string; email: string; nonce: string; verifyCode: string; }; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; changeAvatar: import("@trpc/server").TRPCMutationProcedure<{ input: { userId: string; avatar: string; }; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; resendInvite: import("@trpc/server").TRPCMutationProcedure<{ input: string; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; activate: import("@trpc/server").TRPCMutationProcedure<{ input: { userId: string; password: string; securityQNAs: { questionKey: string; answer: string; }[]; }; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; sendUsernameReminder: import("@trpc/server").TRPCMutationProcedure<{ input: string; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; sendResetPasswordInvite: import("@trpc/server").TRPCMutationProcedure<{ input: string; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{ input: { password: string; }; output: { status: string; username: string; id: string; mobile?: string | undefined; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; audit: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ record: import("@trpc/server").TRPCMutationProcedure<{ input: { operation: "user.create_user"; requestData: { subjectId: string; role: string; primaryOfficeId: string; }; } | { operation: "user.deactivate" | "user.reactivate"; requestData: { subjectId: string; reason: string; comment?: string | undefined; }; } | { operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin"; requestData: { subjectId: string; }; } | { operation: "user.email_address_changed"; requestData: { subjectId: string; }; responseSummary: { email: string; }; } | { operation: "user.phone_number_changed"; requestData: { subjectId: string; }; responseSummary: { phoneNumber: string; }; }; output: void; meta: import("trpc-to-openapi").OpenApiMeta; }>; list: import("@trpc/server").TRPCQueryProcedure<{ input: { userId: string; skip?: number | undefined; count?: number | undefined; timeStart?: string | undefined; timeEnd?: string | undefined; excludeOperations?: string[] | undefined; }; output: { results: ({ id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "event.create"; requestData: { transactionId: string; type: string; createdAtLocation: string | null; }; responseSummary: { eventId: string; trackingId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "event.get"; requestData: { eventId: string; }; responseSummary: { eventType: string; trackingId: string; }; } | { id: string; clientId: string; createdAt: string; operation: "event.search"; clientType: "system"; requestData: { query: Record | null; limit: number | null; offset: number | null; }; responseSummary: { total: number; eventIds: string[]; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "event.actions.notify.request" | "event.actions.declare.request" | "event.actions.register.request" | "event.actions.reject.request" | "event.actions.validate.request" | "event.actions.edit.request" | "event.actions.assign.request" | "event.actions.unassign.request" | "event.actions.read.request" | "event.actions.archive.request" | "event.actions.reinstate.request" | "event.actions.print_certificate.request" | "event.actions.correction.request.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request"; requestData: { eventId: string; actionType: string; eventType: string; trackingId: string; transactionId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "event.actions.custom.request"; requestData: { eventId: string; actionType: "CUSTOM"; customAction: string; eventType: string; trackingId: string; transactionId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "integrations.create"; requestData: { name: string; scopes: string[]; }; responseSummary: { clientId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "integrations.refreshToken"; requestData: { clientId: string; }; responseSummary: { clientId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "integrations.deactivate"; requestData: { id: string; }; responseSummary: { id: string; status: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "integrations.activate"; requestData: { id: string; }; responseSummary: { id: string; status: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "integrations.delete"; requestData: { id: string; }; responseSummary: { id: string; name: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "integrations.refreshSecret"; requestData: { id: string; }; responseSummary: { clientId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "attachments.upload"; requestData: { transactionId: string; path: string | null; }; responseSummary: { fileUrl: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "user.create_user"; requestData: { subjectId: string; role: string; primaryOfficeId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "user.deactivate" | "user.reactivate"; requestData: { subjectId: string; reason: string; comment?: string | undefined; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin"; requestData: { subjectId: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "user.email_address_changed"; requestData: { subjectId: string; }; responseSummary: { email: string; }; } | { id: string; clientId: string; clientType: "system" | "user"; createdAt: string; operation: "user.phone_number_changed"; requestData: { subjectId: string; }; responseSummary: { phoneNumber: string; }; })[]; total: number; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; }>>; locations: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ list: import("@trpc/server").TRPCQueryProcedure<{ input: { isActive?: boolean | undefined; locationIds?: string[] | undefined; locationType?: string | undefined; externalId?: string | undefined; } | undefined; output: { id: string & import("zod").$brand<"UUID">; name: string; administrativeAreaId: (string & import("zod").$brand<"UUID">) | null; validUntil: string | null; locationType: string | null; externalId?: string | null | undefined; }[]; meta: object; }>; set: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; name: string; administrativeAreaId: string | null; validUntil: string | null; locationType: string | null; externalId?: string | null | undefined; }[]; output: void; meta: object; }>; get: import("@trpc/server").TRPCQueryProcedure<{ input: { id: string; }; output: { id: string & import("zod").$brand<"UUID">; name: string; administrativeAreaId: (string & import("zod").$brand<"UUID">) | null; validUntil: string | null; locationType: string | null; externalId?: string | null | undefined; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; getLocationHierarchy: import("@trpc/server").TRPCQueryProcedure<{ input: { locationId: string; }; output: (string & import("zod").$brand<"UUID">)[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; workqueue: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ config: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ list: import("@trpc/server").TRPCQueryProcedure<{ input: void; output: { slug: string; name: { id: string; defaultMessage: string; description: string; }; query: { type: "and"; clauses: { eventType?: string | undefined; status?: { type: "anyOf"; terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[]; } | { type: "exact"; term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED"; } | undefined; createdAt?: { type: "exact"; term: string; } | { type: "range"; gte: string; lte: string; } | { type: "timePeriod"; term: "last7Days" | "last30Days" | "last90Days" | "last365Days"; } | undefined; updatedAt?: { type: "exact"; term: string; } | { type: "range"; gte: string; lte: string; } | { type: "timePeriod"; term: "last7Days" | "last30Days" | "last90Days" | "last365Days"; } | undefined; 'legalStatuses.DECLARED.createdAtLocation'?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; 'legalStatuses.DECLARED.createdByRole'?: { type: "anyOf"; terms: string[]; } | undefined; 'legalStatuses.REGISTERED.createdAt'?: { type: "exact"; term: string; } | { type: "range"; gte: string; lte: string; } | { type: "timePeriod"; term: "last7Days" | "last30Days" | "last90Days" | "last365Days"; } | undefined; 'legalStatuses.REGISTERED.createdAtLocation'?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; 'legalStatuses.REGISTERED.createdByRole'?: { type: "anyOf"; terms: string[]; } | undefined; 'legalStatuses.REGISTERED.registrationNumber'?: { type: "exact"; term: string; } | undefined; createdAtLocation?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; updatedAtLocation?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; updatedByUserRole?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; assignedTo?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; createdBy?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; createdByUserType?: { type: "exact"; term: "system" | "user"; } | undefined; updatedBy?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; trackingId?: { type: "exact"; term: string; } | undefined; flags?: { anyOf?: string[] | undefined; noneOf?: string[] | undefined; } | undefined; data?: unknown; }[]; } | { type: "or"; clauses: { eventType?: string | undefined; status?: { type: "anyOf"; terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[]; } | { type: "exact"; term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED"; } | undefined; createdAt?: { type: "exact"; term: string; } | { type: "range"; gte: string; lte: string; } | { type: "timePeriod"; term: "last7Days" | "last30Days" | "last90Days" | "last365Days"; } | undefined; updatedAt?: { type: "exact"; term: string; } | { type: "range"; gte: string; lte: string; } | { type: "timePeriod"; term: "last7Days" | "last30Days" | "last90Days" | "last365Days"; } | undefined; 'legalStatuses.DECLARED.createdAtLocation'?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; 'legalStatuses.DECLARED.createdByRole'?: { type: "anyOf"; terms: string[]; } | undefined; 'legalStatuses.REGISTERED.createdAt'?: { type: "exact"; term: string; } | { type: "range"; gte: string; lte: string; } | { type: "timePeriod"; term: "last7Days" | "last30Days" | "last90Days" | "last365Days"; } | undefined; 'legalStatuses.REGISTERED.createdAtLocation'?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; 'legalStatuses.REGISTERED.createdByRole'?: { type: "anyOf"; terms: string[]; } | undefined; 'legalStatuses.REGISTERED.registrationNumber'?: { type: "exact"; term: string; } | undefined; createdAtLocation?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; updatedAtLocation?: { type: "within"; location: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; updatedByUserRole?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; assignedTo?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; createdBy?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; createdByUserType?: { type: "exact"; term: "system" | "user"; } | undefined; updatedBy?: { type: "exact"; term: string | { $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar"; $location?: string | undefined; }; } | undefined; trackingId?: { type: "exact"; term: string; } | undefined; flags?: { anyOf?: string[] | undefined; noneOf?: string[] | undefined; } | undefined; data?: unknown; }[]; }; columns: { label: { id: string; defaultMessage: string; description: string; }; value: { $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox"; }; }[]; icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer"; action?: { type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ"; } | undefined; emptyMessage?: { id: string; defaultMessage: string; description: string; } | undefined; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; count: import("@trpc/server").TRPCQueryProcedure<{ input: { slug: string; query: unknown; }[]; output: Record; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; administrativeAreas: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ list: import("@trpc/server").TRPCQueryProcedure<{ input: { isActive?: boolean | undefined; ids?: string[] | undefined; } | undefined; output: { id: string & import("zod").$brand<"UUID">; name: string; parentId: (string & import("zod").$brand<"UUID">) | null; validUntil: string | null; externalId?: string | null | undefined; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; set: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; name: string; parentId: string | null; validUntil: string | null; externalId?: string | null | undefined; }[]; output: void; meta: object; }>; }>>; integrations: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ create: import("@trpc/server").TRPCMutationProcedure<{ input: { name: string; scopes: string[]; }; output: { clientId: string; shaSecret: string; clientSecret: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; authenticate: import("@trpc/server").TRPCMutationProcedure<{ input: { client_id: string; client_secret: string; }; output: { id: string & import("zod").$brand<"UUID">; status: string; scope: (string & import("zod").$brand<"EncodedScope">)[]; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; list: import("@trpc/server").TRPCQueryProcedure<{ input: { status?: "active" | "disabled" | undefined; } | undefined; output: { id: string; name: string; scopes: string[]; status: string; createdAt: string; createdBy: string & import("zod").$brand<"UUID">; }[]; meta: import("trpc-to-openapi").OpenApiMeta; }>; get: import("@trpc/server").TRPCQueryProcedure<{ input: { id: string; }; output: { id: string; name: string; scopes: string[]; status: string; shaSecret: string | null; createdAt: string; createdBy: string & import("zod").$brand<"UUID">; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; deactivate: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; }; output: { id: string; name: string; status: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; activate: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; }; output: { id: string; name: string; status: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; delete: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; }; output: { id: string; name: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; refreshSecret: import("@trpc/server").TRPCMutationProcedure<{ input: { id: string; }; output: { clientId: string; clientSecret: string; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; attachments: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ upload: import("@trpc/server").TRPCMutationProcedure<{ input: FormData | { entries(): IterableIterator<[string, FormDataEntryValue]>; [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; } | { file: unknown; transactionId: unknown; path: unknown; }; output: string; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; announcement: import("@trpc/server").TRPCBuiltRouter<{ ctx: Partial<{ token: `Bearer ${string}`; user: { id: string & import("zod").$brand<"UUID">; type: "system"; signature?: undefined; primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined; } | { id: string & import("zod").$brand<"UUID">; type: "user"; role: string; primaryOfficeId: string & import("zod").$brand<"UUID">; signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined; }; }>; meta: import("trpc-to-openapi").OpenApiMeta; errorShape: import("@trpc/server").TRPCDefaultErrorShape; transformer: true; }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{ broadcast: import("@trpc/server").TRPCMutationProcedure<{ input: { subject: string; body: string; locale: string; }; output: { success: boolean; }; meta: import("trpc-to-openapi").OpenApiMeta; }>; }>>; }>>; /** @knipignore */ export type AppRouter = typeof appRouter; //# sourceMappingURL=router.d.ts.map