/** * Diarly note identifier. */ export type DiarlyNoteIdentifier = { /** * Unique id of the note. */ id: string; day?: never; journal?: never; }; /** * Diarly daily entry identifier. */ export type DiarlyDailyEntryIdentifier = { /** * Date of the entry, documented by Diarly as dd-mm-yyyy. * * @example '01-01-2019' */ day: string; /** * Name or identifier of a journal. Diarly uses the default journal when omitted. */ journal?: string; id?: never; }; /** * Diarly note or daily entry identifier. */ export type DiarlyIdentifier = DiarlyNoteIdentifier | DiarlyDailyEntryIdentifier; export declare function diarlyIdentifierParams(payload: DiarlyIdentifier): { id: string; day?: undefined; journal?: undefined; } | { day: string; journal: string | undefined; id?: undefined; }; export declare function diarlyXCallbackUrl(action: string, params?: Record): string; export declare function diarlyUrl(path: string, params?: Record): string;