1 | import { FilePrintOptions, FilePrintResult, OrientationType, PrintOptions, Printer } from './Print.types';
|
2 | export { FilePrintOptions, FilePrintResult, OrientationType, PrintOptions, Printer };
|
3 | /**
|
4 | * The orientation of the printed content.
|
5 | */
|
6 | export declare const Orientation: OrientationType;
|
7 | /**
|
8 | * Prints a document or HTML, on web this prints the HTML from the page.
|
9 | * > Note: On iOS, printing from HTML source doesn't support local asset URLs (due to `WKWebView`
|
10 | * > limitations). As a workaround you can use inlined base64-encoded strings.
|
11 | * > See [this comment](https://github.com/expo/expo/issues/7940#issuecomment-657111033) for more details.
|
12 | * @param options A map defining what should be printed.
|
13 | * @return Resolves to an empty `Promise` if printing started.
|
14 | */
|
15 | export declare function printAsync(options: PrintOptions): Promise<void>;
|
16 | /**
|
17 | * **Available on iOS only.** Chooses a printer that can be later used in `printAsync`
|
18 | * @return A promise which fulfils with an object containing `name` and `url` of the selected printer.
|
19 | */
|
20 | export declare function selectPrinterAsync(): Promise<Printer>;
|
21 | /**
|
22 | * Prints HTML to PDF file and saves it to [app's cache directory](./filesystem/#filesystemcachedirectory).
|
23 | * On Web this method opens the print dialog.
|
24 | * @param options A map of print options.
|
25 | */
|
26 | export declare function printToFileAsync(options?: FilePrintOptions): Promise<FilePrintResult>;
|