Files
blog/node_modules/hexo-front-matter/dist/front_matter.d.ts
2025-07-16 16:30:56 +00:00

22 lines
612 B
TypeScript

import yaml from 'js-yaml';
declare function split(str: string): {
data: string;
content: string;
separator: string;
prefixSeparator: boolean;
} | {
content: string;
data?: undefined;
separator?: undefined;
prefixSeparator?: undefined;
};
declare function parse(str: string, options?: yaml.LoadOptions): any;
declare function escapeYAML(str: string): string;
interface Options {
mode?: 'json' | '';
prefixSeparator?: boolean;
separator?: string;
}
declare function stringify(obj: any, options?: Options): any;
export { parse, split, escapeYAML as escape, stringify };