import { z } from 'zod';
export declare const SessionRollbackTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    type: z.ZodLiteral<"latest_turn">;
}, z.core.$strict>, z.ZodObject<{
    type: z.ZodLiteral<"before_user_message">;
    userMessageSeq: z.ZodNumber;
}, z.core.$strict>], "type">;
export type SessionRollbackTarget = z.infer<typeof SessionRollbackTargetSchema>;
export declare const SessionRollbackRpcParamsSchema: z.ZodObject<{
    v: z.ZodLiteral<1>;
    target: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
        type: z.ZodLiteral<"latest_turn">;
    }, z.core.$strict>, z.ZodObject<{
        type: z.ZodLiteral<"before_user_message">;
        userMessageSeq: z.ZodNumber;
    }, z.core.$strict>], "type">>;
}, z.core.$strict>;
export type SessionRollbackRpcParams = z.infer<typeof SessionRollbackRpcParamsSchema>;
export declare const SessionRollbackRpcResultSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    target: z.ZodDiscriminatedUnion<[z.ZodObject<{
        type: z.ZodLiteral<"latest_turn">;
    }, z.core.$strict>, z.ZodObject<{
        type: z.ZodLiteral<"before_user_message">;
        userMessageSeq: z.ZodNumber;
    }, z.core.$strict>], "type">;
    threadId: z.ZodOptional<z.ZodString>;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    errorCode: z.ZodString;
    errorMessage: z.ZodString;
}, z.core.$loose>]>;
export type SessionRollbackRpcResult = z.infer<typeof SessionRollbackRpcResultSchema>;
//# sourceMappingURL=sessionRollback.d.ts.map