/** * Content payload definition. */ type Content = { /** * The path to the document. * * @example 'Dropbox/Documents/Notes.txt' */ path?: string; /** * The content will be passed to the x-success URL using this parameter name. Default value is "text". * * @example 'content' */ param?: string; }; /** * Returns content of a document in 1Writer. * * @param payload Content payload. * @returns 1Writer content URL. * @example * content({ path: 'Dropbox/Documents/Notes.txt' }) * // => 'onewriter://x-callback-url/content?path=Dropbox%2FDocuments%2FNotes.txt' * @example * content({ path: 'Notes.txt', param: 'content' }) * // => 'onewriter://x-callback-url/content?path=Notes.txt¶m=content' * @link https://1writerapp.com/url-scheme/ */ export declare function content(payload?: Content): string; export {};