@nimpl/router
Version:
Edge router for next.js apps (i18n, basePath, rewrites, redirects)
27 lines (26 loc) • 837 B
TypeScript
export declare const checkers: {
header: (_url: URL, rule: import("../types/changers").BaseRule, store: Awaited<ReturnType<typeof import("next/headers").headers>>) => {
match: boolean;
groups: {
[key: string]: string;
};
};
cookie: (_url: URL, rule: import("../types/changers").BaseRule, store: Awaited<ReturnType<typeof import("next/headers").cookies>>) => {
match: boolean;
groups: {
[key: string]: string;
};
};
host: (url: URL, rule: import("../types/changers").HostRule) => {
match: boolean;
groups: {
[key: string]: string;
};
};
query: (url: URL, rule: import("../types/changers").BaseRule) => {
match: boolean;
groups: {
[key: string]: string;
};
};
};