@huolala-tech/page-spy-plugin-ospy
Version:
Offline-fist PageSpy, plug and play. Only available in browser.
18 lines (17 loc) • 597 B
TypeScript
import { CacheMessageItem } from '@huolala-tech/page-spy-plugin-data-harbor/dist/types/harbor/base';
import { Lang } from '@huolala-tech/page-spy-base';
export interface Config {
lang: Lang | null;
title: string;
/**
* Online source: 'https://example.com/xxx.jpg'
* Data url: 'data:image/png;base64,xxxx...'
* Relative source: '../xxx.jpg'
*/
logo: string;
primaryColor: string;
autoRender: boolean;
exportButtonText: string | null;
onExportButtonClick: ((data: CacheMessageItem[]) => void) | null;
}
export declare const defaultConfig: Config;