import type { ExtractInput, ExtractResponse } from './extract/types'; import MCP from './mcp'; import { ConsolesSDK } from './types'; export declare class Consoles implements ConsolesSDK { private _apiKey?; /** * Create a new Consoles SDK instance * @param apiKey - Optional API key for authenticated services */ constructor(apiKey?: string); /** * Update the API key for all services * @param apiKey - New API key to use */ setApiKey(apiKey: string): void; /** * Extract structured data from various content types (URLs, files, or text). * * @param options - Extraction options or content string * @returns Promise - The extracted structured data * * @example * ```typescript * const result = await consoles.extract({ * type: 'url', * content: 'https://example.com/article', * schema: { * type: 'object', * properties: { * title: { type: 'string' }, * content: { type: 'string' } * } * } * }); * ``` * * @throws {ExtractError} When extraction fails with specific error details * @throws {Error} When API key is not provided * @see {@link https://consoles.ai/docs/extract} Documentation */ extract(options: ExtractInput): Promise; /** * Create a new MCP instance. * @param name - Name of the MCP instance * @param version - Version of the MCP instance * @param description - Optional description of the MCP instance * @returns MCP instance */ mcp(name: string, version: string, description?: string): MCP; } export default Consoles; export type { ExtractInput, ExtractResponse } from './extract/types'; export { ExtractError } from './extract/index'; export { MCP };