/** * Portable @std/front-matter/yaml shim. * * @module */ export interface Extract { attrs: T; body: string; frontMatter: string; } /** * Extracts YAML front matter with the compatibility behavior used by existing * framework consumers. Scalar roots become an empty attribute object while * object-like roots, including sequences, are returned unchanged. */ export declare function extract>(text: string): Extract; /** * Extracts YAML front matter and requires its root to be a plain mapping. * * Use this at trust boundaries where silently coercing a scalar or sequence * would hide malformed metadata. */ export declare function extractMapping(text: string): Extract>; export declare function test(text: string): boolean; //# sourceMappingURL=front-matter-yaml.d.ts.map