import { AuthType, GwCtx, MsgBase, MsgWithTenantLedger, NextId, MsgTypesCtx, SignedUrlParam, ReqSignedUrl, MethodSignedUrlParams, MsgWithConn, ReqGwCtx } from "./msg-types.js"; import { V2SerializedMetaKey } from "@fireproof/core-types-blockstore"; import { z } from "zod/v4"; export declare function buildReqPutMeta(sthis: NextId, auth: AuthType, signedUrlParam: SignedUrlParam, meta: V2SerializedMetaKey, gwCtx: ReqGwCtx): ReqPutMeta; export declare function MsgIsReqPutMeta(msg: MsgBase): msg is ReqPutMeta; export declare function buildResPutMeta(_msgCtx: MsgTypesCtx, req: MsgWithTenantLedger>, meta: V2SerializedMetaKey, signedUrl: string): ResPutMeta; export declare function MsgIsResPutMeta(qs: MsgBase): qs is ResPutMeta; export declare function MsgIsBindGetMeta(msg: MsgBase): msg is BindGetMeta; export declare function buildBindGetMeta(sthis: NextId, auth: AuthType, msp: MethodSignedUrlParams, gwCtx: ReqGwCtx): BindGetMeta; export declare function buildEventGetMeta(_msgCtx: MsgTypesCtx, req: MsgWithTenantLedger>, meta: V2SerializedMetaKey, gwCtx: GwCtx, signedUrl: string): EventGetMeta; export declare function MsgIsEventGetMeta(qs: MsgBase): qs is EventGetMeta; export declare function buildReqDelMeta(sthis: NextId, auth: AuthType, param: SignedUrlParam, gwCtx: ReqGwCtx, meta?: V2SerializedMetaKey): ReqDelMeta; export declare function MsgIsReqDelMeta(msg: MsgBase): msg is ReqDelMeta; export declare function buildResDelMeta(req: MsgWithTenantLedger>, param: SignedUrlParam, signedUrl?: string): ResDelMeta; export declare function MsgIsResDelMeta(qs: MsgBase): qs is ResDelMeta; export declare const ReqPutMetaSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; type: z.ZodLiteral<"reqPutMeta">; conn: z.ZodOptional; resId: z.ZodOptional; }, z.core.$strip>>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; meta: z.ZodType>; }, z.core.$strip>; export type ReqPutMeta = z.infer; export declare const ResPutMetaValSchema: z.ZodObject<{ type: z.ZodLiteral<"resPutMeta">; meta: z.ZodType>; }, z.core.$strip>; export type ResPutMetaVal = z.infer; export declare const ResPutMetaSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"resPutMeta">; meta: z.ZodType>; }, z.core.$strip>; export type ResPutMeta = z.infer; export declare const BindGetMetaSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; type: z.ZodLiteral<"bindGetMeta">; conn: z.ZodOptional; resId: z.ZodOptional; }, z.core.$strip>>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type BindGetMeta = z.infer; export declare const EventGetMetaSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; signedUrl: z.ZodString; type: z.ZodLiteral<"eventGetMeta">; meta: z.ZodType>; }, z.core.$strip>; export type EventGetMeta = z.infer; export declare const ReqDelMetaSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; type: z.ZodLiteral<"reqDelMeta">; conn: z.ZodOptional; resId: z.ZodOptional; }, z.core.$strip>>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; meta: z.ZodOptional>>; }, z.core.$strip>; export type ReqDelMeta = z.infer; export declare const ResDelMetaSchema: z.ZodObject<{ tid: z.ZodString; version: z.ZodString; auth: z.ZodDiscriminatedUnion<[z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly; iss: z.ZodOptional; sub: z.ZodOptional; aud: z.ZodOptional]>>; exp: z.ZodOptional; nbf: z.ZodOptional; iat: z.ZodOptional; jti: z.ZodOptional; userId: z.ZodString; email: z.ZodEmail; nickname: z.ZodOptional; provider: z.ZodOptional>; created: z.ZodCoercedDate; tenants: z.ZodArray; }, z.core.$strip>>>; ledgers: z.ZodArray; right: z.ZodEnum<{ read: "read"; write: "write"; }>; }, z.core.$strip>>>; selected: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodObject<{ alg: z.ZodOptional; issuer: z.ZodOptional; audience: z.ZodOptional; validFor: z.ZodOptional; }, z.core.$strip>>>; jwk: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>, z.ZodReadonly; params: z.ZodReadonly>; }, z.core.$strip>>, z.ZodReadonly; }, z.core.$strip>>], "type">; conn: z.ZodObject<{ reqId: z.ZodString; resId: z.ZodString; }, z.core.$strip>; tenant: z.ZodReadonly; tenant: z.ZodString; ledger: z.ZodString; }, z.core.$strip>>; urlParam: z.ZodObject<{ path: z.ZodOptional; key: z.ZodString; expires: z.ZodOptional; index: z.ZodOptional; }, z.core.$strip>; methodParam: z.ZodObject<{ method: z.ZodEnum<{ DELETE: "DELETE"; GET: "GET"; PUT: "PUT"; }>; store: z.ZodEnum<{ car: "car"; file: "file"; meta: "meta"; wal: "wal"; }>; }, z.core.$strip>; signedUrl: z.ZodOptional; type: z.ZodLiteral<"resDelMeta">; }, z.core.$strip>; export type ResDelMeta = z.infer;