import type { Got } from 'got'; import type { PrintResponse } from '../types/index.js'; /** * Sends print content to a Memobird device * * @param client - Got HTTP client instance * @param ak - Access Key * @param printcontent - Formatted print content (T:base64 or P:base64) * @param memobirdID - Device ID * @param userID - User ID from binding * @returns Promise resolving to print response * @throws {APIError} If API returns error response * @throws {NetworkError} If network request fails * * @example * ```typescript * const response = await printPaper(client, ak, 'T:SGVsbG8=', 'device-id', 123); * console.log('Print ID:', response.printcontentid); * ``` */ export declare function printPaper(client: Got, ak: string, printcontent: string, memobirdID: string, userID: number): Promise; /** * Prints content from a web URL * * Note: Works best with static or server-rendered pages. AJAX-rendered content may fail. * Images must use complete URLs, and CSS should be inline. * * @param client - Got HTTP client instance * @param ak - Access Key * @param printUrl - URL of the web page to print * @param memobirdID - Device ID * @param userID - User ID from binding * @returns Promise resolving to print response * @throws {APIError} If API returns error response * @throws {NetworkError} If network request fails * * @example * ```typescript * const response = await printFromUrl( * client, * ak, * 'https://example.com/page', * 'device-id', * 123 * ); * ``` */ export declare function printFromUrl(client: Got, ak: string, printUrl: string, memobirdID: string, userID: number): Promise; /** * Prints content from HTML source * * HTML must have inline CSS and complete image URLs. * The HTML is automatically converted to GBK Base64 and URL encoded. * * @param client - Got HTTP client instance * @param ak - Access Key * @param htmlSource - HTML source code * @param memobirdID - Device ID * @param userID - User ID from binding * @returns Promise resolving to print response * @throws {APIError} If API returns error response * @throws {NetworkError} If network request fails * * @example * ```typescript * const html = '

Hello

'; * const response = await printFromHtml(client, ak, html, 'device-id', 123); * ``` */ export declare function printFromHtml(client: Got, ak: string, htmlSource: string, memobirdID: string, userID: number): Promise; //# sourceMappingURL=print.d.ts.map