import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol';
export interface SuccessResponse {
    [key: string]: unknown;
    content: {
        type: 'text';
        text: string;
        mimeType?: string;
    }[];
    isError?: false;
}
export interface ErrorResponse {
    [key: string]: unknown;
    content: {
        type: 'text';
        text: string;
        mimeType?: string;
    }[];
    isError: true;
}
export type Response = SuccessResponse | ErrorResponse;
export declare function successJson(data: unknown): Response;
export declare function successText(text: string): Response;
export declare function errorResponse(message: string): Response;
export declare function adaptHandler<T>(handler: (params: T) => Promise<Response>): (params: T, extra: RequestHandlerExtra) => Promise<Response>;
declare const _default: {
    successJson: typeof successJson;
    successText: typeof successText;
    errorResponse: typeof errorResponse;
    adaptHandler: typeof adaptHandler;
};
export default _default;
