UNPKG

@better-auth-ui/core

Version:

Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.

17 lines (16 loc) 576 B
/** * Download plain text as a `.txt` file generated in the browser. * * @param text - Exact text content to save. * @param filename - Suggested download filename. */ export declare function downloadTextFile(text: string, filename: `${string}.txt`): void; /** * Print plain text in an isolated, hidden frame. * * Loading a `text/plain` Blob keeps the print document limited to the exact * file contents instead of printing the surrounding application UI. * * @param text - Exact text content to print. */ export declare function printTextFile(text: string): void;