export type ToolEnvelope = Record & { readonly ok: boolean; readonly data?: T; readonly error?: string; readonly warnings?: readonly string[]; }; export declare function toolSuccess(data: T, warnings?: readonly string[]): { content: { type: "text"; text: string; }[]; structuredContent: ToolEnvelope; }; export declare function toolFailure(error: unknown, warnings?: readonly string[]): { content: { type: "text"; text: string; }[]; structuredContent: ToolEnvelope; isError: boolean; };