export declare const PROJECT_ROOT = ".bpa.json"; export declare const getPackageName: () => any; export declare const assistantRoot: string; export declare const logError: (...message: (typeof console)["log"]["arguments"]) => void; export declare const logInfo: (...message: (typeof console)["log"]["arguments"]) => void; export declare const logWarning: (...message: (typeof console)["log"]["arguments"]) => void; export declare const logSuccess: (...message: (typeof console)["log"]["arguments"]) => void; export declare const logMessage: (...message: (typeof console)["log"]["arguments"]) => void; export interface IContext { global?: string; local?: string; project?: 'assistant' | 'spfx'; } export interface IGlobalContext { autoBuild?: boolean; autoYarn?: boolean; clone?: 'Git' | 'HTTPS'; components?: string[]; devopsToken?: string; project?: 'assistant' | 'spfx'; sonarToken?: string; user: string; watch?: string[]; } /** * Walk though directories * @param dir * @param callback * @param excludeNodeModules */ export declare const walk: (dir: string, callback: (filename: string, filepath: string, path: string) => Promise | void, excludeNodeModules?: boolean) => Promise; /** * Log an error to the console in a way that Azure DevOps can understand * @param outputPipe * @param error */ export declare const logAzureError: (outputPipe: (message: string) => void, error: string) => void; export type Confidentiality = 'confidential' | 'internal' | 'public' | 'restricted'; interface IWritePdfOptions { breaks?: { afterH1?: boolean; afterH2?: boolean; afterH3?: boolean; afterToc?: boolean; beforeH1?: boolean; beforeH2?: boolean; beforeH3?: boolean; beforeToc?: boolean; }; confidentiality: Confidentiality; content: string; outputPath: string; sourcePath?: string; title: string; toc: 'auto' | boolean; } /** * Write the PDF file from the content * @param content * @param outputPath * @param title * @param breaks * @param breaks.afterH1 * @param breaks.afterH2 * @param breaks.afterH3 * @param breaks.afterToc * @param breaks.beforeH1 * @param breaks.beforeH2 * @param breaks.beforeH3 * @param breaks.beforeToc */ export declare const writePdf: ({ breaks, confidentiality, content, outputPath, sourcePath, title, toc }: IWritePdfOptions) => Promise; interface IWritePdfFromMDOptions { breaks?: { afterH1?: boolean; afterH2?: boolean; afterH3?: boolean; beforeH1?: boolean; beforeH2?: boolean; beforeH3?: boolean; }; confidentiality: Confidentiality; contentOrPath: string; outputPath: string; title: string; type: 'content' | 'path'; } /** * Write the PDF file from the content * @param options * @param options.contentOrPath * @param options.type * @param options.outputPath * @param options.title * @param options.breaks */ export declare const writePdfFromMD: ({ breaks, confidentiality, contentOrPath, outputPath, title, type }: IWritePdfFromMDOptions) => Promise; export {};