import * as v from "valibot"; import type { CustomBlockErrorInfo } from "../errors.js"; export declare const customBlockGetUserErrorCodeSchema: v.StringSchema; export type CustomBlockGetUserErrorCode = "get_user_failed" | (string & {}); export type CustomBlockGetUserErrorInfo = CustomBlockErrorInfo; export declare const customBlockGetUserErrorInfoSchema: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; /** * Sandbox -> host: fetch a user by ID. */ export declare const getUserMessageSchema: v.ObjectSchema<{ readonly type: v.LiteralSchema<"getUser", undefined>; readonly requestId: v.StringSchema; readonly userId: v.StringSchema; }, undefined>; export type GetUserMessage = v.InferOutput; export declare const getUserResultMessageSchema: v.VariantSchema<"status", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"getUserResult", undefined>; readonly requestId: v.StringSchema; readonly status: v.LiteralSchema<"success", undefined>; readonly user: v.ObjectSchema<{ readonly object: v.LiteralSchema<"user", undefined>; readonly id: v.StringSchema; readonly name: v.OptionalSchema, undefined>; readonly avatar_url: v.NullableSchema, undefined>; readonly type: v.LiteralSchema<"person", undefined>; readonly person: v.ObjectSchema<{ readonly email: v.StringSchema; }, undefined>; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"getUserResult", undefined>; readonly requestId: v.StringSchema; readonly status: v.LiteralSchema<"error", undefined>; readonly error: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; }, undefined>], undefined>; export type GetUserResultMessage = v.InferOutput; //# sourceMappingURL=getUser.d.ts.map