1 | import { SourceLocation } from '@babel/types';
|
2 | import type { CssSyntaxError } from 'postcss';
|
3 | import type { AstroturfMetadata, DependencyResolver, ResolvedImport, ResolvedOptions, Style } from '../types';
|
4 | declare class AstroturfLoaderError extends Error {
|
5 | error?: Error | string;
|
6 | constructor(errorOrMessage: string | Error, codeFrame?: any);
|
7 | handleBabelError(error: Error): void;
|
8 | handleCssError(error: CssSyntaxError): void;
|
9 | }
|
10 | export declare function buildDependencyError(content: string, { type, identifier, request }: ResolvedImport, styles: Style[], resource: string, loc: SourceLocation): AstroturfLoaderError;
|
11 | export declare function collectStyles(src: string, filename: string, resolveDependency: DependencyResolver, opts: Partial<ResolvedOptions>): AstroturfMetadata;
|
12 | export declare function replaceStyleTemplates(loaderContext: any, filename: string, src: string, locations: {
|
13 | start?: number;
|
14 | end?: number;
|
15 | code?: string;
|
16 | }[]): {
|
17 | code: string;
|
18 | map: import("magic-string").SourceMap | null;
|
19 | };
|
20 | export declare function resolveOptions(loaderContext: any): Promise<Partial<ResolvedOptions>>;
|
21 | export {};
|