frontend/.pnpm-store/v3/files/7c/f9aba9e214ba5c5011088cb09411a8242d6c3782023dd5f5f47588a0688d08939780d897268950bd6c493b35f6dcbea018b5965b21446cdc612391e0a40a9f

28 lines
762 B
Plaintext

import { Location } from 'locate-character';
export interface Source {
source: string;
get_location: (search: number) => Location;
file_basename: string;
filename: string;
}
export interface Processed {
code: string;
map?: string | object;
dependencies?: string[];
toString?: () => string;
}
export declare type MarkupPreprocessor = (options: {
content: string;
filename: string;
}) => Processed | Promise<Processed>;
export declare type Preprocessor = (options: {
content: string;
attributes: Record<string, string | boolean>;
filename?: string;
}) => Processed | Promise<Processed>;
export interface PreprocessorGroup {
markup?: MarkupPreprocessor;
style?: Preprocessor;
script?: Preprocessor;
}